bind9/lib
Ondřej Surý 0cd65c605c
Don't preserve cache entries if new TTL is smaller than existing
Under certain circumstances, cache entries with equivalent rdataset
might not get replaced.  Previously such entry would get preserved
regardless of the new TTL and expire time on the existing header would
get updated when the expire time was less than the expire time on the
existing header.  Change the logic to preserve the existing header only
if the new expire time is larger than the existing one and replace the
existing cache entry when the new expire time is less than the existing
one.

Co-authored-by: Jinmei Tatuya <jtatuya@infoblox.com>
(cherry picked from commit 9f7ba584cf)
2025-08-26 21:34:08 +02:00
..
bind9 Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
dns Don't preserve cache entries if new TTL is smaller than existing 2025-08-26 21:34:08 +02:00
irs Reduce sizeof isc_sockaddr from 152 to 48 bytes 2025-01-22 14:12:38 +01:00
isc Use ControlStatementsExceptControlMacros for SpaceBeforeParens 2025-08-19 08:10:58 +02:00
isccc Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
isccfg Warn about deprecated DNSKEY and DS algorithms / digest types 2025-07-16 09:14:22 +10:00
ns Reset DNS_{GETDB_STALEFIRST,DBFIND_STALETIMEOUT} in ns__query_start() 2025-07-03 14:24:55 +02:00
.gitignore The isc/platform.h header has been completely removed 2021-07-06 05:33:48 +00:00
Makefile.am move samples/resolve.c to bin/tests/system 2021-04-16 14:29:43 +02:00