Description: Fix too short memory allocation.
Author: Petter Reinholdtsen <tg@mirbsd.de>
Bug-Debian: http://bugs.debian.org/763530
Last-Update: 2014-09-30

Index: ldap2zone/ldap2zone.c
===================================================================
--- ldap2zone.orig/ldap2zone.c	2014-10-01 13:43:20.208212980 +0200
+++ ldap2zone/ldap2zone.c	2014-10-01 13:43:59.836538192 +0200
@@ -216,7 +216,7 @@ int putrr(struct assstack_entry **stack,
 	free(rr);
 	return -1;
     }
-    rrdata->key.len = strlen(type) + strlen(ttl) + 1;
+    rrdata->key.len = strlen(type) + strlen(ttl) + 2; /* null byte and space */
     rrdata->key.data = (void *) malloc(rrdata->key.len);
     if (!rrdata->key.data) {
 	free(rrdata);
