]> 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 06:38:46 +0000 (08:38 +0200)
commit3ac1bb1c391394d23a40facd424e49acfa5513bf
tree980ddec9d81d49553465f3cb6c415fe74f314724
parent7c60b7da8ac18fac33b1c0b049c13c57dcb7d2ff
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.
lib/dns/validator.c