]> git.ipfire.org Git - thirdparty/bind9.git/commit
fix crash in query_respond_any() from all records being hidden
authorEvan Hunt <each@isc.org>
Mon, 25 Feb 2019 20:55:27 +0000 (12:55 -0800)
committerEvan Hunt <each@isc.org>
Fri, 1 Mar 2019 00:06:38 +0000 (16:06 -0800)
commited72b9434de22005814bf0f2ed0a9ba72506d30f
tree4c6ae09968f79469744ea38bccda2f5e3b2f94d8
parent71f7589f08b39a6497c57338fb7edb6e25d36ac7
fix crash in query_respond_any() from all records being hidden

in query_respond_any(), the assumption had previously been made that it
was impossible to get past iterating the node with a return value of
ISC_R_NOMORE but not have found any records, unless we were searching
for RRSIG or SIG. however, it is possible for other types to exist but
be hidden, such as when the zone is transitioning from insecure to
secure and DNSSEC types are encountered, and this situation could
trigger an assertion.  removed the assertion and reorganized the code.

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