From: Wouter Wijngaards Date: Tue, 20 Sep 2011 07:42:04 +0000 (+0000) Subject: - Fix classification of NS set in answer section, where there is a X-Git-Tag: release-1.4.14rc1~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=881f0ad30f2a37dee8a37daa5ecbe076a32ac903;p=thirdparty%2Funbound.git - Fix classification of NS set in answer section, where there is a parent-child server, and the answer has the AA flag for dir.slb.com. Thanks to Amanda Constant from Secure64. git-svn-id: file:///svn/unbound/trunk@2501 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index 26394c237..72d1e4914 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,8 @@ +20 September 2011: Wouter + - Fix classification of NS set in answer section, where there is a + parent-child server, and the answer has the AA flag for dir.slb.com. + Thanks to Amanda Constant from Secure64. + 16 September 2011: Wouter - fix bug #408: accept patch from Steve Snyder that comments out unused functions in lookup3.c. diff --git a/iterator/iter_resptype.c b/iterator/iter_resptype.c index 8ff7e3e6f..1b62a9045 100644 --- a/iterator/iter_resptype.c +++ b/iterator/iter_resptype.c @@ -163,6 +163,8 @@ response_type_from_server(int rdset, ntohs(s->rk.rrset_class) == request->qclass && dname_strict_subdomain_c(s->rk.dname, origzone)) { + if((msg->rep->flags&BIT_AA)) + return RESPONSE_TYPE_ANSWER; return RESPONSE_TYPE_REFERRAL; }