]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
check section.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 3 Aug 2007 09:16:16 +0000 (09:16 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 3 Aug 2007 09:16:16 +0000 (09:16 +0000)
git-svn-id: file:///svn/unbound/trunk@485 be551aaa-1e26-0410-a405-d3ace91eadb9

iterator/iter_scrub.c

index 3f24e2b7057028afe10ba75b53bc321d7bb11ab8..6edd7620fd2513341ce129c93c5fff7ad1462959 100644 (file)
@@ -517,6 +517,7 @@ scrub_sanitize(ldns_buffer* pkt, struct msg_parse* msg, uint8_t* zonename,
                if(!pkt_sub(pkt, rrset->dname, zonename)) {
                        if(msg->an_rrsets == 0 && 
                                rrset->type == LDNS_RR_TYPE_NS && 
+                               rrset->section == LDNS_SECTION_AUTHORITY &&
                                FLAGS_GET_RCODE(msg->flags) == 
                                LDNS_RCODE_NOERROR) {
                                /* noerror, nodata and this NS rrset is above