mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Always call dns_adb_endudpfetch() in fctx_cancelquery() for UDP queries
It is currently possible that dns_adb_endudpfetch() is not called in fctx_cancelquery() for a UDP query, which results in quotas not being adjusted back. Always call dns_adb_endudpfetch() for UDP queries.
This commit is contained in:
@@ -1427,11 +1427,11 @@ fctx_cancelquery(resquery_t **queryp, isc_time_t *finish, bool no_response,
|
|||||||
}
|
}
|
||||||
|
|
||||||
dns_adb_adjustsrtt(fctx->adb, query->addrinfo, rtt, factor);
|
dns_adb_adjustsrtt(fctx->adb, query->addrinfo, rtt, factor);
|
||||||
|
}
|
||||||
|
|
||||||
if ((query->options & DNS_FETCHOPT_TCP) == 0) {
|
if ((query->options & DNS_FETCHOPT_TCP) == 0) {
|
||||||
/* Inform the ADB that we're ending a UDP fetch */
|
/* Inform the ADB that we're ending a UDP fetch */
|
||||||
dns_adb_endudpfetch(fctx->adb, query->addrinfo);
|
dns_adb_endudpfetch(fctx->adb, query->addrinfo);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user