diff --git a/Net/src/SocketAddress.cpp b/Net/src/SocketAddress.cpp index 58c080e30..4fe709b72 100644 --- a/Net/src/SocketAddress.cpp +++ b/Net/src/SocketAddress.cpp @@ -161,11 +161,11 @@ SocketAddress::~SocketAddress() bool SocketAddress::operator < (const SocketAddress& socketAddress) const { - if (family() < addr.family()) return true; - if (family() > addr.family()) return false; - if (host() < addr.host()) return true; - if (host() > addr.host()) return false; - return (port() < addr.port()); + if (family() < socketAddress.family()) return true; + if (family() > socketAddress.family()) return false; + if (host() < socketAddress.host()) return true; + if (host() > socketAddress.host()) return false; + return (port() < socketAddress.port()); }