]> git.ipfire.org Git - thirdparty/bind9.git/commit
Remove useless .expire initialization from rdataslab
authorOndřej Surý <ondrej@isc.org>
Wed, 14 Jan 2026 12:17:30 +0000 (13:17 +0100)
committerOndřej Surý <ondrej@isc.org>
Mon, 30 Mar 2026 19:46:44 +0000 (21:46 +0200)
commit08a33a9cc94a241dc48addbd54f5a8f2419e32c5
tree7d5c852bde61e9b9fe7afd2e67845b61edf10ba1
parente3b60291aabf5a0b0cb7cf4188fb8554b38df641
Remove useless .expire initialization from rdataslab

dns_rdataslab_fromrdataset() set .expire to rdataset->ttl, but the
only consumer (qpcache_addrdataset) immediately overwrote it with
now + rdataset->ttl.  Remove the redundant initialization and set the
expire time only once.
lib/dns/include/dns/rdataslab.h
lib/dns/qpcache.c
lib/dns/rdataslab.c