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:
3
CHANGES
3
CHANGES
@@ -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]
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user