From: Wouter Wijngaards Date: Fri, 17 Aug 2018 15:09:23 +0000 (+0000) Subject: and printout for these cases too. X-Git-Tag: release-1.8.0rc1~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b0ca964984b84904cb466898c033dbfbb30e5340;p=thirdparty%2Funbound.git and printout for these cases too. git-svn-id: file:///svn/unbound/trunk@4862 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/iterator/iterator.c b/iterator/iterator.c index 1037bcd74..54bcc887d 100644 --- a/iterator/iterator.c +++ b/iterator/iterator.c @@ -1328,6 +1328,8 @@ processInitRequest(struct module_qstate* qstate, struct iter_qstate* iq, /* if from cache, NULL, else insert 'cache IP' len=0 */ if(qstate->reply_origin) sock_list_insert(&qstate->reply_origin, NULL, 0, qstate->region); + if(FLAGS_GET_RCODE(msg->rep->flags) == LDNS_RCODE_SERVFAIL) + errinf(qstate, "SERVFAIL in cache"); /* it is an answer, response, to final state */ verbose(VERB_ALGO, "returning answer from cache."); iq->response = msg; diff --git a/validator/validator.c b/validator/validator.c index 2f13dc005..3e9c1ff6c 100644 --- a/validator/validator.c +++ b/validator/validator.c @@ -2340,6 +2340,7 @@ processDLVLookup(struct module_qstate* qstate, struct val_qstate* vq, if(vq->dlv_status == dlv_error) { verbose(VERB_QUERY, "failed DLV lookup"); + errinf(qstate, "failed DLV lookup"); return val_error(qstate, id); } else if(vq->dlv_status == dlv_success) { uint8_t* nm;