mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-29 21:24:56 +02:00
- disable-dnssec-lame-check config option from Charles Walker.
git-svn-id: file:///svn/unbound/trunk@3725 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
+4
-2
@@ -2172,7 +2172,8 @@ processQueryResponse(struct module_qstate* qstate, struct iter_qstate* iq,
|
||||
* differently. No queries should be sent elsewhere */
|
||||
type = RESPONSE_TYPE_ANSWER;
|
||||
}
|
||||
if(iq->dnssec_expected && !iq->dnssec_lame_query &&
|
||||
if(!qstate->env->cfg->disable_dnssec_lame_check && iq->dnssec_expected
|
||||
&& !iq->dnssec_lame_query &&
|
||||
!(iq->chase_flags&BIT_RD)
|
||||
&& iq->sent_count < DNSSEC_LAME_DETECT_COUNT
|
||||
&& type != RESPONSE_TYPE_LAME
|
||||
@@ -2464,7 +2465,8 @@ processQueryResponse(struct module_qstate* qstate, struct iter_qstate* iq,
|
||||
verbose(VERB_ALGO, "cleared outbound list for query restart");
|
||||
/* go to INIT_REQUEST_STATE for new qname. */
|
||||
return next_state(iq, INIT_REQUEST_STATE);
|
||||
} else if(type == RESPONSE_TYPE_LAME) {
|
||||
} else if(!qstate->env->cfg->disable_dnssec_lame_check
|
||||
&& type == RESPONSE_TYPE_LAME) {
|
||||
/* Cache the LAMEness. */
|
||||
verbose(VERB_DETAIL, "query response was %sLAME",
|
||||
dnsseclame?"DNSSEC ":"");
|
||||
|
||||
Reference in New Issue
Block a user