From: Wouter Wijngaards Date: Thu, 30 Aug 2018 08:03:29 +0000 (+0000) Subject: Fixup that it does not set prefetch_ttl twice, but sets the new serve_expired_ttl... X-Git-Tag: release-1.8.0rc1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=000e75581b2faa7a3f24587392dcd3d6d6887c22;p=thirdparty%2Funbound.git Fixup that it does not set prefetch_ttl twice, but sets the new serve_expired_ttl member of the reply ttls. git-svn-id: file:///svn/unbound/trunk@4877 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/ipsecmod/ipsecmod.c b/ipsecmod/ipsecmod.c index ba2384510..c8400c633 100644 --- a/ipsecmod/ipsecmod.c +++ b/ipsecmod/ipsecmod.c @@ -341,7 +341,7 @@ ipsecmod_handle_query(struct module_qstate* qstate, qstate->env->cfg->ipsecmod_max_ttl; qstate->return_msg->rep->prefetch_ttl = PREFETCH_TTL_CALC( qstate->return_msg->rep->ttl); - qstate->return_msg->rep->prefetch_ttl = qstate->return_msg->rep->ttl + + qstate->return_msg->rep->serve_expired_ttl = qstate->return_msg->rep->ttl + qstate->env->cfg->serve_expired_ttl; } }