Remove the memory allocation check that made us resize 0-sized allocations to 1 [RT #2398]

This commit is contained in:
Ondřej Surý 2018-11-12 11:56:36 +01:00
parent 8de2451756
commit 65c084e4eb

View 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;