+ 965. [bug] Using non root hints caused a rbtdb node reference
+ leak. [RT #1581, RT #1618]
+
964. [func] Warn if non root hints data is found in hints file.
963. [bug] bad ISC_LANG_ENDDECLS. [RT #1645]
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: query.c,v 1.196 2001/06/15 23:28:27 gson Exp $ */
+/* $Id: query.c,v 1.197 2001/08/27 06:10:15 marka Exp $ */
#include <config.h>
rdataset, sigrdataset);
}
if (result != ISC_R_SUCCESS) {
+ INSIST(node == NULL);
+ INSIST(!dns_rdataset_isassociated(rdataset));
+ INSIST(sigrdataset == NULL ||
+ !dns_rdataset_isassociated(sigrdataset));
/*
* We don't have any root server hints, but
* we may have working forwarders, so try to
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: view.c,v 1.101 2001/07/26 20:42:44 bwelling Exp $ */
+/* $Id: view.c,v 1.102 2001/08/27 06:10:17 marka Exp $ */
#include <config.h>
result = DNS_R_HINTNXRRSET;
} else if (result == DNS_R_NXDOMAIN)
result = ISC_R_NOTFOUND;
+
+ /*
+ * Cleanup if non-standard hints are used.
+ */
+ if (db == NULL && node != NULL)
+ dns_db_detachnode(view->hints, &node);
}
cleanup:
*dbp = db;
else
dns_db_detach(&db);
- }
+ } else
+ INSIST(node == NULL);
if (zone != NULL)
dns_zone_detach(&zone);
* nameservers!
*/
result = ISC_R_NOTFOUND;
+ INSIST(!dns_rdataset_isassociated(rdataset));
}
}