summaryrefslogtreecommitdiff
path: root/test/ares-test.cc
diff options
context:
space:
mode:
authorYu Jiung <jiung.yu@samsung.com>2016-11-09 02:23:06 (GMT)
committerYu Jiung <jiung.yu@samsung.com>2016-11-09 02:23:15 (GMT)
commit8e609b5f488d486a9e066ed494218d966f489938 (patch)
tree0a169eb7025401e0a14ab5d5e74db5b27954f591 /test/ares-test.cc
parenteb886f120599b2a184db20b527db6dfdfcb7852e (diff)
downloadc-ares-8e609b5f488d486a9e066ed494218d966f489938.zip
c-ares-8e609b5f488d486a9e066ed494218d966f489938.tar.gz
c-ares-8e609b5f488d486a9e066ed494218d966f489938.tar.bz2
Imported Upstream version 1.12.0upstream/1.12.0upstreamrefs/changes/19/96419/1
Change-Id: I6a571bddd24d1cb7d64b74bc66e878ccba2ce638
Diffstat (limited to 'test/ares-test.cc')
-rw-r--r--test/ares-test.cc2
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_;