]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
fixup DS test for apex validation of NODATA.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 5 Aug 2008 10:54:27 +0000 (10:54 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 5 Aug 2008 10:54:27 +0000 (10:54 +0000)
git-svn-id: file:///svn/unbound/trunk@1177 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
validator/val_nsec.c

index e115469471ba644d1bd3598553ae7b6e95763cbe..e9bfda8a82abd1e176aa881f61243340446e6824 100644 (file)
@@ -1,3 +1,6 @@
+5 August 2008: Wouter
+       - fixup DS test so apex nodata works again.
+
 4 August 2008: Wouter
        - iana port update. 
        - TODO update.
index 40298868f1c631409c6767cbb32ba49452540dc7..f984a0dabb970dc6c0d769e943c1ae08be50117a 100644 (file)
@@ -350,7 +350,8 @@ int nsec_proves_nodata(struct ub_packed_rrset_key* nsec,
                nsec_has_type(nsec, LDNS_RR_TYPE_NS) && 
                !nsec_has_type(nsec, LDNS_RR_TYPE_SOA)) {
                return 0;
-       } else if(nsec_has_type(nsec, LDNS_RR_TYPE_SOA)) { /* for DS type */
+       } else if(qinfo->qtype == LDNS_RR_TYPE_DS &&
+               nsec_has_type(nsec, LDNS_RR_TYPE_SOA)) {
                return 0;
        }