]> git.ipfire.org Git - thirdparty/bind9.git/commit
Revert isdelegation() to return boolean value again
authorMatthijs Mekking <matthijs@isc.org>
Thu, 2 Apr 2026 09:16:29 +0000 (11:16 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Tue, 7 Apr 2026 07:44:19 +0000 (09:44 +0200)
commitbd852b1f97c2cc6ded1cd54127024959508a5943
tree7ccf44df78426bc53fd54e299ebe50b77b83f9e8
parenta48b287d9f71a617f989b4fde32af9862f3509df
Revert isdelegation() to return boolean value again

The isdelegation() was changed to return an isc_result_t because the
idea was to have a separate return value DNS_R_NSEC3ITERRANGE to signal
to the caller we could not verify the proof because of too many
iterations in the NSEC3 record, or perhaps ISC_R_UNEXPECTED for a more
generic cause that verification was not done.

But this would make error handling more fragile and all we care about
is whether we can reliably say the NS bit was not set.

If we can not reliably say so, we have to treat it as an insecure
referrral.

Since the answer is either yes or no, we can revert back to returning
a boolean value.

(cherry picked from commit 3ac1bb1c391394d23a40facd424e49acfa5513bf)
lib/dns/validator.c