qpzonedb_t *qpdb;
qpz_version_t *version;
dns_qpread_t qpr;
+ dns_qpread_t nqpr;
uint32_t serial;
unsigned int options;
dns_qpchain_t chain;
dns_name_t *name, qpznode_t **nodep, dns_qpiter_t *nit,
bool *firstp) {
isc_result_t result;
- dns_qpread_t qpr;
REQUIRE(nodep != NULL && *nodep == NULL);
REQUIRE(type == dns_rdatatype_nsec3 || firstp != NULL);
return result;
}
- dns_qpmulti_query(search->qpdb->nsec, &qpr);
-
for (;;) {
if (*firstp) {
/*
* It is the first node sought in the NSEC tree.
*/
*firstp = false;
- result = dns_qp_lookup(&qpr, name, NULL, nit, NULL,
- NULL, NULL);
+ result = dns_qp_lookup(&search->nqpr, name, NULL, nit,
+ NULL, NULL, NULL);
INSIST(result != ISC_R_NOTFOUND);
if (result == ISC_R_SUCCESS) {
/*
}
}
- dns_qpread_destroy(search->qpdb->nsec, &qpr);
return result;
}
nsec3 = true;
} else {
dns_qpmulti_query(qpdb->tree, &search.qpr);
+ dns_qpmulti_query(qpdb->nsec, &search.nqpr);
}
/*
dns_qpread_destroy(qpdb->nsec3, &search.qpr);
} else {
dns_qpread_destroy(qpdb->tree, &search.qpr);
+ dns_qpread_destroy(qpdb->nsec, &search.nqpr);
}
/*