]> git.ipfire.org Git - thirdparty/bind9.git/commit
Clear REDIRECT flag when it isn't needed 12077/head
authorEvan Hunt <each@isc.org>
Tue, 5 May 2026 00:05:11 +0000 (17:05 -0700)
committerMichał Kępień <michal@isc.org>
Thu, 21 May 2026 13:08:14 +0000 (15:08 +0200)
commit203b0608fe360b7f96d5d0b522a0cbead0a69742
tree41ca85522d3a825ecdf0088f815e45efec737dcc
parent73bf578b01599e49f36758025aed038a30a981d1
Clear REDIRECT flag when it isn't needed

The NS_QUERYATTR_REDIRECT flag is set when processing a recursive
NXDOMAIN redirection lookup, so that if that lookup also returns
NXDOMAIN we don't end up looping.

Previously, the flag was left active after use, but if the
same client triggered a subsequent recursive lookup (for example,
in the filter-aaaa plugin), then the wrong branch could be reached
in query_resume(), potentially leading to an assertion failure.  This
has been fixed.

(cherry picked from commit 3ff00183086f304c71076a069376e37692a7c9ff)
lib/ns/query.c