]> granicus.if.org Git - pdns/commitdiff
no rectify for presigned zones
authorKees Monshouwer <mind04@monshouwer.org>
Thu, 4 Jul 2013 18:55:25 +0000 (20:55 +0200)
committermind04 <mind04@monshouwer.org>
Thu, 4 Jul 2013 18:55:25 +0000 (20:55 +0200)
pdns/pdnssec.cc

index dfbb32a6fd9b73d9322b22ebc51bf3a6270f5fac..63906ec3c8a0b4a83e093bc6ec6c4b7d06374a6b 100644 (file)
@@ -165,6 +165,11 @@ void loadMainConfig(const std::string& configdir)
 // I think this has to do with interlocking transactions between B and DK, but unsure.
 bool rectifyZone(DNSSECKeeper& dk, const std::string& zone)
 {
+  if(dk.isPresigned(zone)){
+    cerr<<"Rectify presigned zone '"<<zone<<"' is not allowed/necessary."<<endl;
+    return false;
+  }
+
   UeberBackend B("default");
   bool doTransaction=true; // but see above
   SOAData sd;