Commit b7c9a80d authored by Matthijs Mekking's avatar Matthijs Mekking 🏡

Merge branch '1870-fix-after-backport-to-9_11_s' into 'main'

Change condition for rndc dumpdb -expired

See merge request isc-projects/bind9!4219
parents 45e68016 5614454c
......@@ -3144,7 +3144,7 @@ bind_rdataset(dns_rbtdb_t *rbtdb, dns_rbtnode_t *node, rdatasetheader_t *header,
rdataset->stale_ttl =
(rbtdb->serve_stale_ttl + header->rdh_ttl) - now;
rdataset->ttl = 0;
} else if (header->rdh_ttl < now) {
} else if (IS_CACHE(rbtdb) && !ACTIVE(header, now)) {
rdataset->attributes |= DNS_RDATASETATTR_ANCIENT;
rdataset->stale_ttl = header->rdh_ttl;
rdataset->ttl = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment