]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Minimal backport of #10632: match ordering of PacketID using the 10809/head
authorOtto <otto.moerbeek@open-xchange.com>
Wed, 6 Oct 2021 08:37:28 +0000 (10:37 +0200)
committerOtto <otto.moerbeek@open-xchange.com>
Wed, 6 Oct 2021 08:37:28 +0000 (10:37 +0200)
Birtdah vs non-Birtday comparator

pdns/syncres.hh

index f10c82de257d4bd4be8c3ee69a20e58e5229b5e9..56f4bb07d6c3bae83a68c20caac3d99c87074146 100644 (file)
@@ -974,7 +974,7 @@ struct PacketID
     if( tie(remote, ourSock, type) > tie(b.remote, bSock, b.type))
       return false;
 
-    return tie(fd, id, domain) < tie(b.fd, b.id, b.domain);
+    return tie(domain, fd, id) < tie(b.domain, b.fd, b.id);
   }
 };