]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix missing RRSIGs for "glue" lookups with CD=1
authorMark Andrews <marka@isc.org>
Wed, 3 Sep 2025 23:57:10 +0000 (09:57 +1000)
committerMark Andrews <marka@isc.org>
Wed, 10 Sep 2025 04:20:22 +0000 (14:20 +1000)
commitb954a1df43e6e6e5ff60f1da1240ece644b7e190
tree52b577f82816054ffd43571a8561e14878ad2e63
parent943756aac3fd7ada50d07988abfab25c1bfa4921
Fix missing RRSIGs for "glue" lookups with CD=1

The code to test whether to store the RRSIGs on DNS_R_UNCHANGED
with CD=1 was failing because the comparison methods of the two
rdatatset instances were not compatible.  Move the testing into
dns_db_addrdataset(), and request it by setting the DNS_ADD_EQUALOK
option.  If the option is set and the old and new rrsets compare
as equal, dns_db_addrdataset() returns ISC_R_SUCCESS instead of
DNS_R_UNCHANGED.
lib/dns/include/dns/db.h
lib/dns/qpcache.c
lib/dns/resolver.c