From 0496540437516d2f7300209153fc55c2f0d30c21 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Fri, 24 Feb 2017 00:37:05 +0100 Subject: [PATCH] minor cleanup in the afxr-rectify code (cherry picked from commit 9f70b77ace3cb0d4654ceccbdfcb5470adad853b) --- pdns/tcpreceiver.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/tcpreceiver.cc b/pdns/tcpreceiver.cc index ec8a4aac3e..da5d143cca 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()); } -- 2.47.2