]> granicus.if.org Git - pdns/commitdiff
repair some tabdamage
authorBert Hubert <bert.hubert@netherlabs.nl>
Fri, 31 Dec 2010 13:31:39 +0000 (13:31 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Fri, 31 Dec 2010 13:31:39 +0000 (13:31 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1778 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/pdnssec.cc

index abaf949ba055bde8d924c596f0a0b96ea1e52bba..0c677c44e7dd3ba8720739b46caeba4823b38846 100644 (file)
@@ -147,25 +147,23 @@ void checkZone(DNSSECKeeper& dk, const std::string& zone)
   DNSResourceRecord rr;
   uint64_t numrecords=0, numerrors=0;
   
-    while(sd.db->get(rr)) {
-      if(rr.qtype.getCode() == QType::MX) 
-       rr.content = lexical_cast<string>(rr.priority)+" "+rr.content;
+  while(sd.db->get(rr)) {
+    if(rr.qtype.getCode() == QType::MX) 
+      rr.content = lexical_cast<string>(rr.priority)+" "+rr.content;
       
-      try {
-       shared_ptr<DNSRecordContent> drc(DNSRecordContent::mastermake(rr.qtype.getCode(), 1, rr.content));
-       string tmp=drc->serialize(rr.qname);
-      }
-      catch(std::exception& e) 
-      {
-       cerr<<"Following record had a problem: "<<rr.qname<<" IN " <<rr.qtype.getName()<< " " << rr.content<<endl;
-       cerr<<"Error was: "<<e.what()<<endl;
-       numerrors++;
-      }
-      numrecords++;
+    try {
+      shared_ptr<DNSRecordContent> drc(DNSRecordContent::mastermake(rr.qtype.getCode(), 1, rr.content));
+      string tmp=drc->serialize(rr.qname);
     }
-    cerr<<"Checked "<<numrecords<<" records, "<<numerrors<<" errors"<<endl;
-  
-  
+    catch(std::exception& e) 
+    {
+      cerr<<"Following record had a problem: "<<rr.qname<<" IN " <<rr.qtype.getName()<< " " << rr.content<<endl;
+      cerr<<"Error was: "<<e.what()<<endl;
+      numerrors++;
+    }
+    numrecords++;
+  }
+  cerr<<"Checked "<<numrecords<<" records, "<<numerrors<<" errors"<<endl;
 }