From 22ac684cd932846c96feae07b53993ce6832d0f5 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Fri, 14 Jan 2011 15:51:11 +0000 Subject: [PATCH] and store bogus ttl (this is not picked out of the cache to send to, so saves work and avoids this target) git-svn-id: file:///svn/unbound/trunk@2375 be551aaa-1e26-0410-a405-d3ace91eadb9 --- services/cache/rrset.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/cache/rrset.c b/services/cache/rrset.c index 6677596a9..381d8193e 100644 --- a/services/cache/rrset.c +++ b/services/cache/rrset.c @@ -353,7 +353,8 @@ rrset_update_sec_status(struct rrset_cache* r, /* for NS records only shorter TTLs, other types: update it */ if(ntohs(rrset->rk.type) != LDNS_RR_TYPE_NS || updata->ttl+now < cachedata->ttl || - cachedata->ttl < now) { + cachedata->ttl < now || + updata->trust == sec_status_bogus) { cachedata->ttl = updata->ttl + now; for(i=0; icount+cachedata->rrsig_count; i++) cachedata->rr_ttl[i] = updata->rr_ttl[i]+now; -- 2.47.2