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

Merge branch '3835-cname-wildcard-loop-followup' into 'main'

prevent query_coveringnsec() from running twice

See merge request isc-projects/bind9!8214
This commit is contained in:
Evan Hunt
2023-08-21 21:29:56 +00:00
2 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
6230. [bug] Prevent an unnecessary query restart if a synthesized
CNAME target points to the CNAME owner. [GL #3835]
6229. [func] Add basic USDT framework for adding static
tracing points. [GL #4041]

View File

@@ -9870,6 +9870,12 @@ query_synthcnamewildcard(query_ctx_t *qctx, dns_rdataset_t *rdataset,
RUNTIME_CHECK(result == ISC_R_SUCCESS);
dns_rdata_reset(&rdata);
if (dns_name_equal(qctx->client->query.qname, &cname.cname)) {
dns_message_puttempname(qctx->client->message, &tname);
dns_rdata_freestruct(&cname);
return (ISC_R_SUCCESS);
}
dns_name_copy(&cname.cname, tname);
dns_rdata_freestruct(&cname);