mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
dns_rbt_addnode() was sometimes called with *nodep != NULL
This commit is contained in:
@@ -922,6 +922,7 @@ findnode(dns_db_t *db, dns_name_t *name, isc_boolean_t create,
|
||||
* unlocking then relocking.
|
||||
*/
|
||||
RWLOCK(&rbtdb->tree_lock, locktype);
|
||||
node = NULL;
|
||||
result = dns_rbt_addnode(rbtdb->tree, name, &node);
|
||||
if (result != DNS_R_SUCCESS && result != DNS_R_EXISTS) {
|
||||
RWUNLOCK(&rbtdb->tree_lock, locktype);
|
||||
|
Reference in New Issue
Block a user