]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
minor cleanup in the afxr-rectify code
authorKees Monshouwer <mind04@monshouwer.org>
Thu, 23 Feb 2017 23:37:05 +0000 (00:37 +0100)
committerArthur Gautier <baloo@gandi.net>
Thu, 11 May 2017 17:52:03 +0000 (17:52 +0000)
pdns/tcpreceiver.cc

index eb00628f7986add9a3d3f01fd94409b490a69497..c873499c2bcbb71dbc8cf441787e82558b5f3310 100644 (file)
@@ -804,7 +804,6 @@ int TCPNameserver::doAXFR(const DNSName &target, shared_ptr<DNSPacket> q, int ou
     } else {
       if (zrr.dr.d_type)
         L<<Logger::Warning<<"Zone '"<<target<<"' contains out-of-zone data '"<<zrr.dr.d_name<<"|"<<DNSRecordContent::NumberToType(zrr.dr.d_type)<<"', ignoring"<<endl;
-      continue;
     }
   }
 
@@ -822,11 +821,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) && !(zrr.dr.d_name==shorter && zrr.dr.d_type == QType::DS))
+          if(nsset.count(shorter) && !(zrr.dr.d_name==shorter && zrr.dr.d_type == QType::DS)) {
             zrr.auth=false;
+            continue;
+          }
         } while(shorter.chopOff());
-      } else
-        continue;
+      }
     }
 
     if(NSEC3Zone) {