]> granicus.if.org Git - pdns/commitdiff
rec: Compare PacketID's sockets and IDs before DNSNames
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 1 Jul 2019 16:08:04 +0000 (18:08 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 1 Jul 2019 16:41:20 +0000 (18:41 +0200)
pdns/syncres.hh

index bbe35beef922e9a669df9aaf22c3cef9c1c66a52..06626f710cf3e563e2d8ace76c3c48ece54b053d 100644 (file)
@@ -922,7 +922,7 @@ struct PacketID
     if( tie(remote, ourSock, type) > tie(b.remote, bSock, b.type))
       return false;
 
-    return tie(domain, fd, id) < tie(b.domain, b.fd, b.id);
+    return tie(fd, id, domain) < tie(b.fd, b.id, b.domain);
   }
 };