]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix CID 332468: Memory - illegal accesses (UNINIT)
authorMatthijs Mekking <matthijs@isc.org>
Thu, 1 Jul 2021 12:56:22 +0000 (14:56 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Thu, 1 Jul 2021 12:59:00 +0000 (14:59 +0200)
commit7e9fb5deda68372e72fb77128cb244f525765f6d
tree384e37f93f665268b9c45b86e6c4c776e7200f05
parente814422e239c14eb404ff623d344a1f126a6029f
Fix CID 332468: Memory - illegal accesses (UNINIT)

*** CID 332468:  Memory - illegal accesses  (UNINIT)
/lib/dns/zone.c: 6613 in dns_zone_getdnsseckeys()
6607                 ISC_LIST_UNLINK(dnskeys, k1, link);
6608                 ISC_LIST_APPEND(*keys, k1, link);
6609             }
6610         }
6611     6612     failure:
>>>     CID 332468:  Memory - illegal accesses  (UNINIT)
>>>     Using uninitialized value "keyset.methods" when calling
>>>     "dns_rdataset_isassociated".
6613         if (dns_rdataset_isassociated(&keyset)) {
6614             dns_rdataset_disassociate(&keyset);
6615         }
6616         if (node != NULL) {
6617             dns_db_detachnode(db, &node);
6618         }

Fix by initializing the 'keyset' with 'dns_rdataset_init'.
lib/dns/zone.c