From: Wouter Wijngaards Date: Tue, 19 Apr 2016 15:10:20 +0000 (+0000) Subject: comment notes. X-Git-Tag: release-1.5.9rc1~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dcc41cc8e11e77dfe0f43f2f2a5e85e9561293fe;p=thirdparty%2Funbound.git comment notes. git-svn-id: file:///svn/unbound/trunk@3707 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/cachedb/cachedb.c b/cachedb/cachedb.c index d1eb002fb..3ddd72aef 100644 --- a/cachedb/cachedb.c +++ b/cachedb/cachedb.c @@ -423,16 +423,16 @@ parse_data(struct module_qstate* qstate, struct sldns_buffer* buf) verbose(VERB_ALGO, "cachedb msg adjusted down by %d", (int)adjust); /*adjust_msg(qstate->return_msg, adjust);*/ /* TODO: - msg->rep->ttl = r->ttl - now; + msg->rep->ttl = r->ttl - adjust; msg->rep->prefetch_ttl = PREFETCH_TTL_CALC(msg->rep->ttl); for(i=0; icount + d->rrsig_count; i++) { - if(d->rr_ttl[i] < now) - d->rr_ttl[i] = 0; - else d->rr_ttl[i] -= now; + if(d->rr_ttl[i] < adjust) + d->rr_ttl[i] = 0; + else d->rr_ttl[i] -= adjust; } - if(d->ttl < now) - d->ttl = 0; - else d->ttl -= now; + if(d->ttl < adjust) + d->ttl = 0; + else d->ttl -= adjust; */ /* TODO */