From ee3d6aff9bd73c1b23e29d1fa1fa6f7a1ef0533b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 28 Dec 2015 00:30:56 +0100 Subject: resolved: use RRSIG expiry and original TTL for cache management When we verified a signature, fix up the RR's TTL to the original TTL mentioned in the signature, and store the signature expiry information in the RR, too. Then, use that when adding RRs to the cache. --- src/resolve/resolved-dns-rr.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/resolve/resolved-dns-rr.c') diff --git a/src/resolve/resolved-dns-rr.c b/src/resolve/resolved-dns-rr.c index 04d442bf03..d479de7125 100644 --- a/src/resolve/resolved-dns-rr.c +++ b/src/resolve/resolved-dns-rr.c @@ -339,6 +339,7 @@ DnsResourceRecord* dns_resource_record_new(DnsResourceKey *key) { rr->n_ref = 1; rr->key = dns_resource_key_ref(key); + rr->expiry = USEC_INFINITY; return rr; } -- cgit v1.2.3-54-g00ecf