summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibuv/src/win/winsock.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-05-07 15:48:01 (GMT)
committerBrad King <brad.king@kitware.com>2018-05-07 15:48:01 (GMT)
commit42fbb285161a7424116a1e838b29741864ab3691 (patch)
tree858d1d7aa84098ce326d32c41da9047d9cd95064 /Utilities/cmlibuv/src/win/winsock.c
parentdd3e1a737216b7c9bfb6c7569685b36a1bff9cba (diff)
parentc8b67ea119c4000018238f6c3201a1364356d93a (diff)
downloadCMake-42fbb285161a7424116a1e838b29741864ab3691.zip
CMake-42fbb285161a7424116a1e838b29741864ab3691.tar.gz
CMake-42fbb285161a7424116a1e838b29741864ab3691.tar.bz2
Merge branch 'upstream-libuv' into update-libuv
* upstream-libuv: libuv 2018-05-06 (bf605bd7)
Diffstat (limited to 'Utilities/cmlibuv/src/win/winsock.c')
-rw-r--r--Utilities/cmlibuv/src/win/winsock.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Utilities/cmlibuv/src/win/winsock.c b/Utilities/cmlibuv/src/win/winsock.c
index 7cfa90f..8418895 100644
--- a/Utilities/cmlibuv/src/win/winsock.c
+++ b/Utilities/cmlibuv/src/win/winsock.c
@@ -580,8 +580,10 @@ int uv__convert_to_localhost_if_unspecified(const struct sockaddr* addr,
memcpy(dest6, addr, sizeof(*dest6));
if (memcmp(&dest6->sin6_addr,
&uv_addr_ip6_any_.sin6_addr,
- sizeof(uv_addr_ip6_any_.sin6_addr)) == 0)
- dest6->sin6_addr = (struct in6_addr) IN6ADDR_LOOPBACK_INIT;
+ sizeof(uv_addr_ip6_any_.sin6_addr)) == 0) {
+ struct in6_addr init_sin6_addr = IN6ADDR_LOOPBACK_INIT;
+ dest6->sin6_addr = init_sin6_addr;
+ }
return 0;
default:
return UV_EINVAL;