summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/UdpTransceiver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/UdpTransceiver.cpp')
-rw-r--r--cpp/src/Ice/UdpTransceiver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/Ice/UdpTransceiver.cpp b/cpp/src/Ice/UdpTransceiver.cpp
index 88770e74a19..2a0d90c645a 100644
--- a/cpp/src/Ice/UdpTransceiver.cpp
+++ b/cpp/src/Ice/UdpTransceiver.cpp
@@ -150,7 +150,7 @@ IceInternal::UdpTransceiver::equivalent(const string& host, int port) const
{
struct sockaddr_in addr;
getAddress(host, port, addr);
- return memcmp(&addr, &_addr, sizeof(struct sockaddr_in)) == 0;
+ return compareAddress(addr, _addr);
}
int