diff options
Diffstat (limited to 'test/ares-test.cc')
-rw-r--r-- | test/ares-test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ares-test.cc b/test/ares-test.cc index 96c80b9..b86cba4 100644 --- a/test/ares-test.cc +++ b/test/ares-test.cc @@ -180,7 +180,7 @@ MockServer::MockServer(int family, int port, int tcpport) struct sockaddr_in6 addr; memset(&addr, 0, sizeof(addr)); addr.sin6_family = AF_INET6; - addr.sin6_addr = in6addr_any; + memset(&addr.sin6_addr, 0, sizeof(addr.sin6_addr)); // in6addr_any addr.sin6_port = htons(tcpport_); int tcprc = bind(tcpfd_, (struct sockaddr*)&addr, sizeof(addr)); EXPECT_EQ(0, tcprc) << "Failed to bind AF_INET6 to TCP port " << tcpport_; |