]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
To match incoming, don't look at subnet
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 17 Jan 2025 10:49:21 +0000 (11:49 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 28 May 2025 13:56:04 +0000 (15:56 +0200)
pdns/recursordist/syncres.hh

index 45f16e76a314e96ff4b37d171cfb24a904077aec..ce6a490dbd5aa8c22f09e3fc814ce28146ef7333 100644 (file)
@@ -803,10 +803,10 @@ struct PacketIDCompare
 {
   bool operator()(const std::shared_ptr<PacketID>& lhs, const std::shared_ptr<PacketID>& rhs) const
   {
-    if (std::tie(lhs->remote, lhs->tcpsock, lhs->type, lhs->ecsSubnet) < std::tie(rhs->remote, rhs->tcpsock, rhs->type, rhs->ecsSubnet)) {
+    if (std::tie(lhs->remote, lhs->tcpsock, lhs->type) < std::tie(rhs->remote, rhs->tcpsock, rhs->type)) {
       return true;
     }
-    if (std::tie(lhs->remote, lhs->tcpsock, lhs->type, lhs->ecsSubnet) > std::tie(rhs->remote, rhs->tcpsock, rhs->type, rhs->ecsSubnet)) {
+    if (std::tie(lhs->remote, lhs->tcpsock, lhs->type) > std::tie(rhs->remote, rhs->tcpsock, rhs->type)) {
       return false;
     }