]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fixup that it does not set prefetch_ttl twice, but sets the new serve_expired_ttl...
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 30 Aug 2018 08:03:29 +0000 (08:03 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 30 Aug 2018 08:03:29 +0000 (08:03 +0000)
git-svn-id: file:///svn/unbound/trunk@4877 be551aaa-1e26-0410-a405-d3ace91eadb9

ipsecmod/ipsecmod.c

index ba2384510f4550a8eef25eca130ac285bdf5835e..c8400c6333ee7a3385ff729da17eeca513c4225d 100644 (file)
@@ -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;
                                }
                        }