2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

update foundname when detecting a zonecut above qname

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.
This commit is contained in:
Evan Hunt
2024-04-01 13:41:39 -07:00
committed by Ondřej Surý
parent b4cc46de07
commit ea6659a5e9
2 changed files with 4 additions and 0 deletions

View File

@@ -1702,6 +1702,8 @@ find(dns_db_t *db, const dns_name_t *name, dns_dbversion_t *version,
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;