2200. [bug] The search for cached NSEC records was stopping to

early leading to excessive DLV queries. [RT #16930]
This commit is contained in:
Mark Andrews
2007-06-19 06:19:29 +00:00
parent ec5347e2c7
commit 6133734cec
2 changed files with 7 additions and 3 deletions

View File

@@ -1,3 +1,6 @@
2200. [bug] The search for cached NSEC records was stopping to
early leading to excessive DLV queries. [RT #16930]
2199. [bug] win32: don't call WSAStartup() while loading dlls.
[RT #16911]

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: rbtdb.c,v 1.245 2007/06/18 23:47:41 tbox Exp $ */
/* $Id: rbtdb.c,v 1.246 2007/06/19 06:19:29 marka Exp $ */
/*! \file */
@@ -3323,7 +3323,8 @@ find_coveringnsec(rbtdb_search_t *search, dns_dbnode_t **nodep,
header_prev = header;
continue;
}
if (NONEXISTENT(header) || NXDOMAIN(header)) {
if (NONEXISTENT(header) ||
RBTDB_RDATATYPE_BASE(header->type) == 0) {
header_prev = header;
continue;
}
@@ -3349,7 +3350,7 @@ find_coveringnsec(rbtdb_search_t *search, dns_dbnode_t **nodep,
result = DNS_R_COVERINGNSEC;
} else if (!empty_node) {
result = ISC_R_NOTFOUND;
}else
} else
result = dns_rbtnodechain_prev(&search->chain, NULL,
NULL);
unlock_node: