|
|
b394224 |
From 9be04e6fac3f4ee8fa08d3671dac41d2156d2ced Mon Sep 17 00:00:00 2001
|
|
|
b394224 |
From: Wouter Wijngaards <wouter@nlnetlabs.nl>
|
|
|
b394224 |
Date: Thu, 27 Sep 2018 08:19:29 +0000
|
|
|
b394224 |
Subject: [PATCH] - Fix #4188: IPv6 forwarders without ipv6 result in SERVFAIL,
|
|
|
b394224 |
fixes qname minimisation with a forwarder when connectivity has issues
|
|
|
b394224 |
from rejecting responses.
|
|
|
b394224 |
|
|
|
b394224 |
git-svn-id: file:///svn/unbound/trunk@4916 be551aaa-1e26-0410-a405-d3ace91eadb9
|
|
|
b394224 |
---
|
|
|
b394224 |
iterator/iterator.c | 6 ++++--
|
|
|
b394224 |
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
b394224 |
|
|
|
b394224 |
diff --git a/iterator/iterator.c b/iterator/iterator.c
|
|
|
b394224 |
index 7baf92b7..2f26bd33 100644
|
|
|
b394224 |
--- a/iterator/iterator.c
|
|
|
b394224 |
+++ b/iterator/iterator.c
|
|
|
b394224 |
@@ -2174,7 +2174,8 @@ processQueryTargets(struct module_qstate* qstate, struct iter_qstate* iq,
|
|
|
b394224 |
return 0;
|
|
|
b394224 |
}
|
|
|
b394224 |
|
|
|
b394224 |
- if(iq->minimisation_state == INIT_MINIMISE_STATE) {
|
|
|
b394224 |
+ if(iq->minimisation_state == INIT_MINIMISE_STATE
|
|
|
b394224 |
+ && !(iq->chase_flags & BIT_RD)) {
|
|
|
b394224 |
/* (Re)set qinfo_out to (new) delegation point, except when
|
|
|
b394224 |
* qinfo_out is already a subdomain of dp. This happens when
|
|
|
b394224 |
* increasing by more than one label at once (QNAMEs with more
|
|
|
b394224 |
@@ -2715,7 +2716,8 @@ processQueryResponse(struct module_qstate* qstate, struct iter_qstate* iq,
|
|
|
b394224 |
sock_list_insert(&qstate->reply_origin,
|
|
|
b394224 |
&qstate->reply->addr, qstate->reply->addrlen,
|
|
|
b394224 |
qstate->region);
|
|
|
b394224 |
- if(iq->minimisation_state != DONOT_MINIMISE_STATE) {
|
|
|
b394224 |
+ if(iq->minimisation_state != DONOT_MINIMISE_STATE
|
|
|
b394224 |
+ && !(iq->chase_flags & BIT_RD)) {
|
|
|
b394224 |
if(FLAGS_GET_RCODE(iq->response->rep->flags) !=
|
|
|
b394224 |
LDNS_RCODE_NOERROR) {
|
|
|
b394224 |
if(qstate->env->cfg->qname_minimisation_strict)
|
|
|
b394224 |
--
|
|
|
b394224 |
2.14.4
|
|
|
b394224 |
|