mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-26 04:15:27 -04:00
Remove the memory allocation check that made us resize 0-sized allocations to 1 [RT #2398]
This commit is contained in:
parent
8de2451756
commit
65c084e4eb
1 changed files with 0 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue