From: Kees Monshouwer Date: Tue, 1 May 2018 22:37:04 +0000 (+0200) Subject: auth: also skip sorting for unsigned zones. Thanks @habbie X-Git-Tag: dnsdist-1.3.1~91^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=22a676e01a37872e2e6d7422f64bf45a4c80fd16;p=thirdparty%2Fpdns.git auth: also skip sorting for unsigned zones. Thanks @habbie --- diff --git a/pdns/tcpreceiver.cc b/pdns/tcpreceiver.cc index 6374e4ee2c..b3e14d702b 100644 --- a/pdns/tcpreceiver.cc +++ b/pdns/tcpreceiver.cc @@ -811,7 +811,7 @@ int TCPNameserver::doAXFR(const DNSName &target, shared_ptr q, int ou } // Group records by name and type, signpipe stumbles over interrupted rrsets - if(!presignedZone) { + if(securedZone && !presignedZone) { sort(zrrs.begin(), zrrs.end(), [](const DNSZoneRecord& a, const DNSZoneRecord& b) { return tie(a.dr.d_name, a.dr.d_type) < tie(b.dr.d_name, b.dr.d_type); });