2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

dns_rbt_addnode() was sometimes called with *nodep != NULL

This commit is contained in:
Andreas Gustafsson 1999-06-17 17:08:18 +00:00
parent 774446ce4d
commit fffba6a14b

View File

@ -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);