]> 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)
committerPieter Lexis <pieter.lexis@powerdns.com>
Mon, 13 Nov 2017 16:25:08 +0000 (17:25 +0100)
(cherry picked from commit 9f70b77ace3cb0d4654ceccbdfcb5470adad853b)

pdns/tcpreceiver.cc

index ec8a4aac3e64e5bdd3a51aa9c32a8c55e3628561..da5d143cca53b060eab4be919a92ec37f51af42c 100644 (file)
@@ -801,10 +801,10 @@ int TCPNameserver::doAXFR(const DNSName &target, shared_ptr<DNSPacket> q, int ou
         DNSName shorter(rr.qname);
         do {
           if (shorter==target) // apex is always auth
-            break;
+            continue;
           if(nsset.count(shorter) && !(rr.qname==shorter && rr.qtype.getCode() == QType::DS)) {
             rr.auth=false;
-            break;
+            continue;
           }
         } while(shorter.chopOff());
       }