]> 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:52:27 +0000 (09:52 +0200)
commit33a3e1ebff7d9330acd709095c6ace8df6c1a9d8
tree412bf064f455162ec24da30c95372a7a153dd144
parent284a9e3a83a189ca4626c64b371b7a75a6a3a586
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