mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
[master] fix possible assertion in save_nsec3param()
3793. [bug] zone.c:save_nsec3param() could assert when out of memory. [RT #35621]
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -1,3 +1,6 @@
|
||||
3793. [bug] zone.c:save_nsec3param() could assert when out of
|
||||
memory. [RT #35621]
|
||||
|
||||
3792. [func] Provide links to the alternate statistics views when
|
||||
displaying in a browser. [RT #35605]
|
||||
|
||||
|
@@ -13570,10 +13570,12 @@ save_nsec3param(dns_zone_t *zone, nsec3paramlist_t *nsec3list) {
|
||||
REQUIRE(nsec3list != NULL);
|
||||
REQUIRE(ISC_LIST_EMPTY(*nsec3list));
|
||||
|
||||
dns_rdataset_init(&rdataset);
|
||||
dns_rdataset_init(&prdataset);
|
||||
|
||||
dns_db_attach(zone->db, &db);
|
||||
CHECK(dns_db_getoriginnode(db, &node));
|
||||
|
||||
dns_rdataset_init(&rdataset);
|
||||
dns_db_currentversion(db, &version);
|
||||
result = dns_db_findrdataset(db, node, version,
|
||||
dns_rdatatype_nsec3param,
|
||||
@@ -13616,7 +13618,6 @@ save_nsec3param(dns_zone_t *zone, nsec3paramlist_t *nsec3list) {
|
||||
}
|
||||
|
||||
getprivate:
|
||||
dns_rdataset_init(&prdataset);
|
||||
result = dns_db_findrdataset(db, node, version, zone->privatetype,
|
||||
dns_rdatatype_none, 0, &prdataset, NULL);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
|
Reference in New Issue
Block a user