From: Ondřej Surý Date: Mon, 12 Nov 2018 10:56:36 +0000 (+0100) Subject: Remove the memory allocation check that made us resize 0-sized allocations to 1 ... X-Git-Tag: v9.13.4~17^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65c084e4ebc12e81f18dd5da95461f956e1032e2;p=thirdparty%2Fbind9.git Remove the memory allocation check that made us resize 0-sized allocations to 1 [RT #2398] --- diff --git a/bin/dnssec/dnssec-signzone.c b/bin/dnssec/dnssec-signzone.c index 92374fdba08..c409ac25ccd 100644 --- a/bin/dnssec/dnssec-signzone.c +++ b/bin/dnssec/dnssec-signzone.c @@ -533,8 +533,6 @@ signset(dns_diff_t *del, dns_diff_t *add, dns_dbnode_t *node, dns_name_t *name, arraysize += dns_rdataset_count(&sigset); wassignedby = isc_mem_get(mctx, arraysize * sizeof(bool)); nowsignedby = isc_mem_get(mctx, arraysize * sizeof(bool)); - if (wassignedby == NULL || nowsignedby == NULL) - fatal("out of memory"); for (i = 0; i < arraysize; i++) wassignedby[i] = nowsignedby[i] = false;