mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
permanently disable QNAME minimization in a fetch when forwarding
QNAME minimization is normally disabled when forwarding. if, in the course of processing a fetch, we switch back to normal recursion at some point, we can't safely start minimizing because we may have been left in an inconsistent state.
This commit is contained in:
parent
c6a08a727d
commit
51c9ea98a3
1 changed files with 9 additions and 0 deletions
|
|
@ -4013,6 +4013,15 @@ fctx_nextaddress(fetchctx_t *fctx) {
|
|||
addrinfo->flags |= FCTX_ADDRINFO_MARK;
|
||||
fctx->find = NULL;
|
||||
fctx->forwarding = true;
|
||||
|
||||
/*
|
||||
* QNAME minimization is disabled when
|
||||
* forwarding, and has to remain disabled if
|
||||
* we switch back to normal recursion; otherwise
|
||||
* forwarding could leave us in an inconsistent
|
||||
* state.
|
||||
*/
|
||||
fctx->minimized = false;
|
||||
return (addrinfo);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue