From 217ef3d9a3c91168ff3c9981263682243c09f71a Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Tue, 31 Jul 2012 12:53:53 +0000 Subject: [PATCH] - Fix forward-first option where it sets the RD flag wrongly. git-svn-id: file:///svn/unbound/trunk@2731 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 1 + iterator/iterator.c | 2 ++ 2 files changed, 3 insertions(+) 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++;