mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
prevent query_coveringnsec() from running twice
when synthesizing a new CNAME, we now check whether the target matches the query already being processed. if so, we do not restart the query; this prevents a waste of resources.
This commit is contained in:
parent
344f0bb7ce
commit
0ae8b2e056
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue