From: Wouter Wijngaards Date: Tue, 31 Jul 2012 12:53:53 +0000 (+0000) Subject: - Fix forward-first option where it sets the RD flag wrongly. X-Git-Tag: release-1.4.19rc1~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=217ef3d9a3c91168ff3c9981263682243c09f71a;p=thirdparty%2Funbound.git - Fix forward-first option where it sets the RD flag wrongly. git-svn-id: file:///svn/unbound/trunk@2731 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index 1eed0fc7a..f846ffaef 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -3,6 +3,7 @@ - Fix that enables modules to register twice for the same serviced_query, without race conditions or administration issues. This should not happen with the current codebase, but it is robust. + - Fix forward-first option where it sets the RD flag wrongly. 30 July 2012: Wouter - tag 1.4.18rc2. diff --git a/iterator/iterator.c b/iterator/iterator.c index 14f1bc6a0..e3f058fe5 100644 --- a/iterator/iterator.c +++ b/iterator/iterator.c @@ -1436,6 +1436,7 @@ processLastResort(struct module_qstate* qstate, struct iter_qstate* iq, if(p) { struct delegpt_ns* ns; struct delegpt_addr* a; + iq->chase_flags &= ~BIT_RD; /* go to authorities */ for(ns = p->nslist; ns; ns=ns->next) { (void)delegpt_add_ns(iq->dp, qstate->region, ns->name, (int)ns->lame); @@ -1455,6 +1456,7 @@ processLastResort(struct module_qstate* qstate, struct iter_qstate* iq, /* if: no parent NS in cache - go up one level */ verbose(VERB_ALGO, "try to grab parent NS"); iq->store_parent_NS = iq->dp; + iq->chase_flags &= ~BIT_RD; /* go to authorities */ iq->deleg_msg = NULL; iq->refetch_glue = 1; iq->query_restart_count++;