]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: also skip sorting for unsigned zones. Thanks @habbie 6561/head
authorKees Monshouwer <mind04@monshouwer.org>
Tue, 1 May 2018 22:37:04 +0000 (00:37 +0200)
committermind04 <mind04@monshouwer.org>
Tue, 1 May 2018 22:37:04 +0000 (00:37 +0200)
pdns/tcpreceiver.cc

index 6374e4ee2c641fb9b57b5e83c7452f4efd9ea8ed..b3e14d702b60f5bc6b2b23d7fb968e3fd51927e0 100644 (file)
@@ -811,7 +811,7 @@ int TCPNameserver::doAXFR(const DNSName &target, shared_ptr<DNSPacket> 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);
     });