]> granicus.if.org Git - pdns/commitdiff
Add missing DNSSEC trace message
authorPieter Lexis <pieter.lexis@powerdns.com>
Thu, 14 Jul 2016 15:50:12 +0000 (17:50 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 15 Jul 2016 09:48:46 +0000 (11:48 +0200)
pdns/validate.cc

index bb90f41dd193c4beeb07edecf79afa22342224f5..6795710450217d1b8b7d25808b04632c6543a495 100644 (file)
@@ -390,8 +390,10 @@ vState getKeysFor(DNSRecordOracle& dro, const DNSName& zone, keyset_t &keyset)
               LOG("\t"<<r->getZoneRepresentation()<<endl);
               auto nsec = std::dynamic_pointer_cast<NSECRecordContent>(r);
               if(nsec) {
-                if(v.first.first == qname && !nsec->d_set.count(QType::DS))
+                if(v.first.first == qname && !nsec->d_set.count(QType::DS)) {
+                  LOG("Denies existence of DS!"<<endl);
                   return Insecure;
+                }
                 else if(v.first.first.canonCompare(qname) && qname.canonCompare(nsec->d_next) ) {
                   LOG("Did not find DS for this level, trying one lower"<<endl);
                   goto skipLevel;