]> git.ipfire.org Git - thirdparty/bind9.git/commit
fix and simplify dns_rdataset_equal() and _equalx()
authorEvan Hunt <each@isc.org>
Thu, 6 Feb 2025 23:50:52 +0000 (15:50 -0800)
committerEvan Hunt <each@isc.org>
Wed, 19 Feb 2025 22:58:32 +0000 (14:58 -0800)
commit4601d4299a2bce82f44d997cd1c1e99bd04c9adc
tree65656884cf0da4893ed7523df3847a3199d46674
parent15fe68e50d5d84f677950096762d3b27aa2425d2
fix and simplify dns_rdataset_equal() and _equalx()

if both rdataslabs being compared have zero length, return true.

also, since these functions are only ever called on slabheaders
with sizeof(dns_slabheader_t) as the reserve length, we can
simplify the API: remove the reservelen argument, and pass the
slabs as type dns_slabheader_t * instead of unsigned char *.
lib/dns/include/dns/rdataslab.h
lib/dns/qpcache.c
lib/dns/rdataslab.c