mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-03 20:29:28 -05:00
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
This commit is contained in:
parent
e2dc829258
commit
22ac684cd9
1 changed files with 2 additions and 1 deletions
3
services/cache/rrset.c
vendored
3
services/cache/rrset.c
vendored
|
|
@ -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; i<cachedata->count+cachedata->rrsig_count; i++)
|
||||
cachedata->rr_ttl[i] = updata->rr_ttl[i]+now;
|
||||
|
|
|
|||
Loading…
Reference in a new issue