From: Kees Monshouwer Date: Thu, 23 Feb 2017 23:37:05 +0000 (+0100) Subject: minor cleanup in the afxr-rectify code X-Git-Tag: auth-4.0.5~1^2~3^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0496540437516d2f7300209153fc55c2f0d30c21;p=pdns minor cleanup in the afxr-rectify code (cherry picked from commit 9f70b77ace3cb0d4654ceccbdfcb5470adad853b) --- diff --git a/pdns/tcpreceiver.cc b/pdns/tcpreceiver.cc index ec8a4aac3..da5d143cc 100644 --- a/pdns/tcpreceiver.cc +++ b/pdns/tcpreceiver.cc @@ -801,10 +801,10 @@ int TCPNameserver::doAXFR(const DNSName &target, shared_ptr 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()); }