]> 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 11:01:59 +0000 (12:01 +0100)
commit46e793a3b4e63ff7d4cf941b8a5abc493fd8794d
tree7c6142905f44c211cee7685b4b88e7045c34c345
parent4c8e1b8256614c965c8a59d9896bc822f4fcec96
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