mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 06:55:30 +00:00
reset fctx->qmindcname and fctx->qminname after processing a delegation
This commit is contained in:
@@ -9184,6 +9184,23 @@ rctx_referral(respctx_t *rctx) {
|
|||||||
return (ISC_R_COMPLETE);
|
return (ISC_R_COMPLETE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((fctx->options & DNS_FETCHOPT_QMINIMIZE) != 0) {
|
||||||
|
dns_name_free(&fctx->qmindcname, fctx->mctx);
|
||||||
|
dns_name_init(&fctx->qmindcname, NULL);
|
||||||
|
result = dns_name_dup(rctx->ns_name, fctx->mctx,
|
||||||
|
&fctx->qmindcname);
|
||||||
|
if (result != ISC_R_SUCCESS) {
|
||||||
|
rctx->result = result;
|
||||||
|
return (ISC_R_COMPLETE);
|
||||||
|
}
|
||||||
|
|
||||||
|
result= fctx_minimize_qname(fctx);
|
||||||
|
if (result != ISC_R_SUCCESS) {
|
||||||
|
rctx->result = result;
|
||||||
|
return (ISC_R_COMPLETE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
result = fcount_incr(fctx, true);
|
result = fcount_incr(fctx, true);
|
||||||
if (result != ISC_R_SUCCESS) {
|
if (result != ISC_R_SUCCESS) {
|
||||||
rctx->result = result;
|
rctx->result = result;
|
||||||
|
Reference in New Issue
Block a user