summaryrefslogtreecommitdiff
path: root/lib/dns/acl.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dns/acl.c')
-rw-r--r--lib/dns/acl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/dns/acl.c b/lib/dns/acl.c
index dbc6f9cb4f3a..8d3718a22b27 100644
--- a/lib/dns/acl.c
+++ b/lib/dns/acl.c
@@ -290,6 +290,9 @@ dns_acl_merge(dns_acl_t *dest, dns_acl_t *source, isc_boolean_t pos)
if (newmem == NULL)
return (ISC_R_NOMEMORY);
+ /* Zero. */
+ memset(newmem, 0, newalloc * sizeof(dns_aclelement_t));
+
/* Copy in the original elements */
memmove(newmem, dest->elements,
dest->length * sizeof(dns_aclelement_t));