- Fix #4193: Fix that prefetch failure does not overwrite valid cache

entry with SERVFAIL.


git-svn-id: file:///svn/unbound/trunk@4976 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2018-11-26 10:25:50 +00:00
parent 4d5b32ee59
commit 8fcc82171a
2 changed files with 3 additions and 1 deletions

View file

@ -1,6 +1,8 @@
26 November 2018: Wouter
- Fix to not set GLOB_NOSORT so the unbound.conf include: files are
sorted and in a predictable order.
- Fix #4193: Fix that prefetch failure does not overwrite valid cache
entry with SERVFAIL.
22 November 2018: Wouter
- With ./configure --with-pyunbound --with-pythonmodule

View file

@ -292,7 +292,7 @@ error_response_cache(struct module_qstate* qstate, int id, int rcode)
if(!qstate->no_cache_store) {
/* store in cache */
struct reply_info err;
if(qstate->prefetch_leeway > NORR_TTL) {
if(qstate->prefetch_leeway > 0) {
verbose(VERB_ALGO, "error response for prefetch in cache");
/* attempt to adjust the cache entry prefetch */
if(dns_cache_prefetch_adjust(qstate->env, &qstate->qinfo,