diff options
author | zeliard <spacesun@naver.com> | 2015-05-04 15:49:03 +0900 |
---|---|---|
committer | zeliard <spacesun@naver.com> | 2015-05-04 15:49:03 +0900 |
commit | c4e7713e1f5b7539400eae7494c8a55995539c17 (patch) | |
tree | b84cd97904f368979fe95f1f4ca8e2e11eb8d18b | |
parent | 40b1e23b8c3998c6f64401c558872c5747c00f29 (diff) |
correct win32-related API usage
-rw-r--r-- | src/core/iomgr/endpoint_pair_windows.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/iomgr/endpoint_pair_windows.c b/src/core/iomgr/endpoint_pair_windows.c index d78b6ea957..58960b6028 100644 --- a/src/core/iomgr/endpoint_pair_windows.c +++ b/src/core/iomgr/endpoint_pair_windows.c @@ -50,7 +50,7 @@ static void create_sockets(SOCKET sv[2]) { SOCKET lst_sock = INVALID_SOCKET; SOCKET cli_sock = INVALID_SOCKET; SOCKADDR_IN addr; - int addr_len; + int addr_len = sizeof(addr); lst_sock = WSASocket(AF_INET, SOCK_STREAM, IPPROTO_TCP, NULL, 0, WSA_FLAG_OVERLAPPED); GPR_ASSERT(lst_sock != INVALID_SOCKET); |