]> 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)
committerEvan Hunt <each@isc.org>
Wed, 26 Feb 2025 05:29:19 +0000 (21:29 -0800)
commit1edbbc32b4cca228e05cb9646ad623cf31027a95
tree889881fd13e832df18320548de9178cc76b4fd0f
parenta102e504c30340b3e6d312e9cd5d3f04753fc7a3
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.
lib/dns/resolver.c