]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove the memory allocation check that made us resize 0-sized allocations to 1 ...
authorOndřej Surý <ondrej@sury.org>
Mon, 12 Nov 2018 10:56:36 +0000 (11:56 +0100)
committerOndřej Surý <ondrej@sury.org>
Thu, 15 Nov 2018 16:24:08 +0000 (17:24 +0100)
bin/dnssec/dnssec-signzone.c

index 92374fdba08f2ee1e31786744ce1d1c3f1c56351..c409ac25ccd1faeccd193bba7abd559c4b382411 100644 (file)
@@ -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;