]> git.ipfire.org Git - thirdparty/bind9.git/commit
Expire the 0 TTL RRSet quickly rather using them for serve-stale
authorOndřej Surý <ondrej@isc.org>
Tue, 21 Jul 2020 09:35:42 +0000 (11:35 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Tue, 4 Aug 2020 08:50:31 +0000 (10:50 +0200)
commit6ffa2ddae0bc31271492481ec50f99d68263b25b
tree55be2123484f3fb043886e708c6e75edc317053f
parentce53db34d601b107d268889893e3f40693bd8d35
Expire the 0 TTL RRSet quickly rather using them for serve-stale

When a received RRSet has TTL 0, they would be preserved for
serve-stale (default `max-stale-cache` is 12 hours) rather than expiring
them quickly from the cache database.

This commit makes sure the RRSet didn't have TTL 0 before marking the
entry in the database as "stale".
lib/dns/rbtdb.c