From 8daafcc139333e6a9a19b41a668a0ee10eb538fd Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Mon, 30 Apr 2018 21:38:14 +0200 Subject: [PATCH] auth: speedup AXFR out for presigned zones. --- pdns/tcpreceiver.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pdns/tcpreceiver.cc b/pdns/tcpreceiver.cc index e1dfd2e55..6374e4ee2 100644 --- a/pdns/tcpreceiver.cc +++ b/pdns/tcpreceiver.cc @@ -811,9 +811,11 @@ int TCPNameserver::doAXFR(const DNSName &target, shared_ptr q, int ou } // Group records by name and type, signpipe stumbles over interrupted rrsets - 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); - }); + if(!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); + }); + } if(rectify) { // set auth -- 2.40.0