From fffba6a14b6ee99e085d54fe47faf51f9da9cadf Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Thu, 17 Jun 1999 17:08:18 +0000 Subject: [PATCH] dns_rbt_addnode() was sometimes called with *nodep != NULL --- lib/dns/rbtdb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dns/rbtdb.c b/lib/dns/rbtdb.c index 6937ddbcfa..7a7e537dcd 100644 --- a/lib/dns/rbtdb.c +++ b/lib/dns/rbtdb.c @@ -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);