]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
properly blank out nsec, nsec3 and nsec3param from database
authorbert hubert <bert.hubert@powerdns.com>
Mon, 6 Jun 2016 15:52:24 +0000 (17:52 +0200)
committerbert hubert <bert.hubert@powerdns.com>
Tue, 7 Jun 2016 09:25:01 +0000 (11:25 +0200)
pdns/slavecommunicator.cc

index e0a6fa75a476b94ee050239657b320a209cbb269..4e3ffac5ee739948f7f45491f60f2c6edbb5041b 100644 (file)
@@ -189,7 +189,7 @@ static bool processRecordForZS(const DNSName& domain, bool& firstNSEC3, DNSResou
     zs.ns3pr = NSEC3PARAMRecordContent(rr.content);
     zs.isDnssecZone = zs.isNSEC3 = true;
     zs.isNarrow = false;
-    break;
+    return false;
   case QType::NSEC3: {
     NSEC3RecordContent ns3rc(rr.content);
     if (firstNSEC3) {
@@ -202,12 +202,12 @@ static bool processRecordForZS(const DNSName& domain, bool& firstNSEC3, DNSResou
       DNSName hashPart = DNSName(toLower(rr.qname.makeRelative(domain).toString()));
       zs.secured.insert(hashPart);
     }
-    break;
+    return false;
   }
   
   case QType::NSEC: 
     zs.isDnssecZone = zs.isPresigned = true;
-    break;
+    return false;
   
   case QType::NS: 
     if(rr.qname!=domain)