]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix validation of qtype DS queries that result in no data for
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 6 Jul 2012 13:56:44 +0000 (13:56 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 6 Jul 2012 13:56:44 +0000 (13:56 +0000)
  non-optout NSEC3 zones.

git-svn-id: file:///svn/unbound/trunk@2712 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
validator/val_nsec3.c

index 58e6e7608d9e3b889652ec5bf21b054a9d582803..ebd85e35054a8e0c4647dafbab5f0e5b06b9e117 100644 (file)
@@ -1,3 +1,7 @@
+6 July 2012: Wouter
+       - Fix validation of qtype DS queries that result in no data for
+         non-optout NSEC3 zones.
+
 4 July 2012: Wouter
        - compile libunbound with libnss on Suse, passes regression tests.
 
index 419bbc51d848829ce7f1c750fd48a7e0c65b3f1a..2a2cfcf9b2d5c1a14831b49277d6d53e70b7c978 100644 (file)
@@ -1171,8 +1171,8 @@ nsec3_do_prove_nodata(struct module_env* env, struct nsec3_filter* flt,
                 * If not type DS: matching nsec3 must not be a delegation.
                 */
                if(qinfo->qtype == LDNS_RR_TYPE_DS && qinfo->qname_len != 1 
-                       && nsec3_has_type(rrset, rr, LDNS_RR_TYPE_SOA &&
-                       !dname_is_root(qinfo->qname))) {
+                       && nsec3_has_type(rrset, rr, LDNS_RR_TYPE_SOA) &&
+                       !dname_is_root(qinfo->qname)) {
                        verbose(VERB_ALGO, "proveNodata: apex NSEC3 "
                                "abused for no DS proof, bogus");
                        return sec_status_bogus;