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:
parent
774446ce4d
commit
fffba6a14b
@ -922,6 +922,7 @@ findnode(dns_db_t *db, dns_name_t *name, isc_boolean_t create,
|
|||||||
* unlocking then relocking.
|
* unlocking then relocking.
|
||||||
*/
|
*/
|
||||||
RWLOCK(&rbtdb->tree_lock, locktype);
|
RWLOCK(&rbtdb->tree_lock, locktype);
|
||||||
|
node = NULL;
|
||||||
result = dns_rbt_addnode(rbtdb->tree, name, &node);
|
result = dns_rbt_addnode(rbtdb->tree, name, &node);
|
||||||
if (result != DNS_R_SUCCESS && result != DNS_R_EXISTS) {
|
if (result != DNS_R_SUCCESS && result != DNS_R_EXISTS) {
|
||||||
RWUNLOCK(&rbtdb->tree_lock, locktype);
|
RWUNLOCK(&rbtdb->tree_lock, locktype);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user