]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix classification of NS set in answer section, where there is a
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 20 Sep 2011 07:42:04 +0000 (07:42 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 20 Sep 2011 07:42:04 +0000 (07:42 +0000)
  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

doc/Changelog
iterator/iter_resptype.c

index 26394c2377f4eeb37858e85ceff8ad4f15d6d746..72d1e4914676b6f1d45f27c837ceb632de731d82 100644 (file)
@@ -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.
index 8ff7e3e6f85a134a355050bf4edef278de3f55b6..1b62a9045f5df442dc5d60541174d878176df681 100644 (file)
@@ -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;
                        }