]> git.ipfire.org Git - thirdparty/bind9.git/commit
set eresult based on the type in ncache_adderesult()
authorEvan Hunt <each@isc.org>
Tue, 25 Feb 2025 22:41:41 +0000 (14:41 -0800)
committerOndřej Surý <ondrej@isc.org>
Wed, 26 Mar 2025 10:59:37 +0000 (11:59 +0100)
commit8f84f8293a415a62058bcdf0d7988e6e5615a2c1
tree61d6651e404cf6d22fc3352c7dc6f044f569bf90
parent466186b8ab9bb07124fcd27e595f57e4aae2be32
set eresult based on the type in ncache_adderesult()

when the caching of a negative record failed because of the
presence of a positive one, ncache_adderesult() could override
this to ISC_R_SUCCESS. this could cause CNAME and DNAME responses
to be handled incorrectly.  ncache_adderesult() now sets the result
code correctly in such cases.

(cherry picked from commit 1edbbc32b4cca228e05cb9646ad623cf31027a95)
lib/dns/resolver.c