mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-07 14:52:04 -04:00
Use query counters in validator code
Commitaf7db89513as part of #4141 was supposed to apply the 'max-recursion-queries' quota to validator queries, but the counter was never actually passed on to dns_resolver_createfetch(). This has been fixed, and the global query counter ('max-query-count', per client request) is now also added. (cherry picked from commit5b1ae4a948)
This commit is contained in:
parent
67fa22a774
commit
e96d6ee85f
1 changed files with 2 additions and 2 deletions
|
|
@ -938,8 +938,8 @@ create_fetch(dns_validator_t *val, dns_name_t *name, dns_rdatatype_t type,
|
|||
dns_validator_ref(val);
|
||||
result = dns_resolver_createfetch(
|
||||
val->view->resolver, name, type, NULL, NULL, NULL, NULL, 0,
|
||||
fopts, 0, NULL, NULL, val->loop, callback, val, &val->frdataset,
|
||||
&val->fsigrdataset, &val->fetch);
|
||||
fopts, 0, val->qc, val->gqc, val->loop, callback, val,
|
||||
&val->frdataset, &val->fsigrdataset, &val->fetch);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
dns_validator_detach(&val);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue