]> granicus.if.org Git - pdns/commitdiff
minor cleanup in the afxr-rectify code
authorKees Monshouwer <mind04@monshouwer.org>
Thu, 23 Feb 2017 23:37:05 +0000 (00:37 +0100)
committermind04 <mind04@monshouwer.org>
Thu, 4 May 2017 21:24:38 +0000 (23:24 +0200)
pdns/tcpreceiver.cc

index e588eabd6487ccc8526350b30e50d8c33b1a6bad..c4c047147dbdb201c66b1a548860414a1c4a1ddf 100644 (file)
@@ -784,7 +784,6 @@ int TCPNameserver::doAXFR(const DNSName &target, shared_ptr<DNSPacket> q, int ou
     } else {
       if (rr.qtype.getCode())
         L<<Logger::Warning<<"Zone '"<<target<<"' contains out-of-zone data '"<<rr.qname<<"|"<<rr.qtype.getName()<<"', ignoring"<<endl;
-      continue;
     }
   }
 
@@ -802,11 +801,12 @@ int TCPNameserver::doAXFR(const DNSName &target, shared_ptr<DNSPacket> q, int ou
         do {
           if (shorter==target) // apex is always auth
             continue;
-          if(nsset.count(shorter) && !(rr.qname==shorter && rr.qtype.getCode() == QType::DS))
+          if(nsset.count(shorter) && !(rr.qname==shorter && rr.qtype.getCode() == QType::DS)) {
             rr.auth=false;
+            continue;
+          }
         } while(shorter.chopOff());
-      } else
-        continue;
+      }
     }
 
     if(NSEC3Zone) {