an assertion could be triggered in the QPDB cache if a DNAME
was found above a queried NS, because the 'foundname' value was
not correctly updated to point to the zone cut.
the same mistake existed in qpzone and has been fixed there as well.
encloser, (void *)&search DNS__DB_FLARG_PASS);
if (zcresult != DNS_R_CONTINUE) {
result = DNS_R_PARTIALMATCH;
+ dns_qpchain_node(&search.chain, i, foundname,
+ NULL, NULL);
search.chain.len = i - 1;
node = encloser;
break;
tresult = check_zonecut(n, &search DNS__DB_FLARG_PASS);
if (tresult != DNS_R_CONTINUE) {
result = tresult;
+ dns_qpchain_node(&search.chain, i, foundname, NULL,
+ NULL);
search.chain.len = i - 1;
node = n;
}