- Fix to have cachedb not return expired bogus data as non-bogus.

This commit is contained in:
W.C.A. Wijngaards
2026-02-23 12:45:14 +01:00
parent 8e04d04949
commit aa4e2a9e69
2 changed files with 6 additions and 1 deletions
+3 -1
View File
@@ -754,8 +754,10 @@ cachedb_intcache_store(struct module_qstate* qstate, int msg_expired,
"(original ttl: %d)", (int)original_ttl);
/* The expired entry does not get checked by the validator
* and we need a validation value for it. */
/* By setting this to unchecked, bogus data is not returned
* as non-bogus. */
if(qstate->env->cfg->cachedb_check_when_serve_expired)
qstate->return_msg->rep->security = sec_status_insecure;
qstate->return_msg->rep->security = sec_status_unchecked;
}
(void)dns_cache_store(qstate->env, &qstate->qinfo,
qstate->return_msg->rep, 0, qstate->prefetch_leeway, 0,
+3
View File
@@ -1,3 +1,6 @@
23 February 2026: Wouter
- Fix to have cachedb not return expired bogus data as non-bogus.
17 February 2026: Wouter
- Fix to remove unused conditional from cookie timestamp at
worker env.