Skip to content

Commit

Permalink
- server-expired-ttl-reset should work for expired records regardless of
Browse files Browse the repository at this point in the history
  their expired TTL value.
  • Loading branch information
gthess committed Sep 23, 2024
1 parent dc0e6e8 commit 57316fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions validator/validator.c
Original file line number Diff line number Diff line change
Expand Up @@ -2460,6 +2460,7 @@ processFinished(struct module_qstate* qstate, struct val_qstate* vq,
struct reply_info* rep = (struct reply_info*)e->entry.data;
if(rep && rep->security > sec_status_bogus &&
(!qstate->env->cfg->serve_expired_ttl ||
qstate->env->cfg->serve_expired_ttl_reset ||
*qstate->env->now <= rep->serve_expired_ttl)) {
verbose(VERB_ALGO, "validation failed but "
"previously cached valid response "
Expand Down

0 comments on commit 57316fb

Please sign in to comment.