]> granicus.if.org Git - pdns/commitdiff
pdnsutil: Fix rectify message for non-DNSSEC zones
authorPieter Lexis <pieter.lexis@powerdns.com>
Tue, 22 Mar 2016 15:00:06 +0000 (16:00 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Tue, 22 Mar 2016 15:06:55 +0000 (16:06 +0100)
Closes: #3392
pdns/pdnsutil.cc

index 1e5b1c08adbf905d51c4cc4736c948dff5f1bfeb..ffb2c34fa8ba5849a061bb168a741947eac11012 100644 (file)
@@ -179,7 +179,7 @@ bool rectifyZone(DNSSECKeeper& dk, const DNSName& zone)
   bool narrow;
   bool haveNSEC3=dk.getNSEC3PARAM(zone, &ns3pr, &narrow);
   bool isOptOut=(haveNSEC3 && ns3pr.d_flags);
-  if(sd.db->doesDNSSEC())
+  if(dk.isSecuredZone(zone))
   {
     if(!haveNSEC3)
       cerr<<"Adding NSEC ordering information "<<endl;