mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
nsec3.c: Add a missing dns_db_detachnode() call
There is one case in 'dns_nsec3_activex()' where it returns but forgets to detach the db node. Add the missing 'dns_db_detachnode()' call. This case only triggers if 'sig-signing-type' (privatetype) is set to 0 (which by default is not), or if the function is called with 'complete' is set to 'true' (which at this moment do not exist).
This commit is contained in:
@@ -1830,6 +1830,7 @@ dns_nsec3_activex(dns_db_t *db, dns_dbversion_t *version, bool complete,
|
||||
|
||||
try_private:
|
||||
if (privatetype == 0 || complete) {
|
||||
dns_db_detachnode(db, &node);
|
||||
*answer = false;
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
Reference in New Issue
Block a user