From: Kees Monshouwer Date: Mon, 30 Apr 2018 19:38:14 +0000 (+0200) Subject: auth: speedup AXFR out for presigned zones. X-Git-Tag: dnsdist-1.3.1~91^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8daafcc139333e6a9a19b41a668a0ee10eb538fd;p=pdns auth: speedup AXFR out for presigned zones. --- 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