From a68df29d25b2ee9d9bfe0987fbebd7e19e960355 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Fri, 24 Feb 2017 00:36:15 +0100 Subject: [PATCH] fix a regression in axfr-rectify introduced by commit d86e1bf7 --- pdns/tcpreceiver.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pdns/tcpreceiver.cc b/pdns/tcpreceiver.cc index e2540935a2..eb00628f79 100644 --- a/pdns/tcpreceiver.cc +++ b/pdns/tcpreceiver.cc @@ -787,9 +787,7 @@ int TCPNameserver::doAXFR(const DNSName &target, shared_ptr q, int ou zrr.dr.d_content = ip.dr.d_content; zrrs.push_back(zrr); } - } - else { - zrrs.push_back(zrr); + continue; } if (rectify) { @@ -802,6 +800,7 @@ int TCPNameserver::doAXFR(const DNSName &target, shared_ptr q, int ou continue; } } + zrrs.push_back(zrr); } else { if (zrr.dr.d_type) L<