diff options
author | zeliard <spacesun@naver.com> | 2015-04-30 16:05:45 +0900 |
---|---|---|
committer | zeliard <spacesun@naver.com> | 2015-04-30 16:05:45 +0900 |
commit | 3874ad0833d670d73db88a7afd65145ff2c0f2ae (patch) | |
tree | 38c2a197c24d2830f981d04969d94ec004cad1a5 | |
parent | 1685d773ef81420bf747c6988a2ad9baefd126fa (diff) |
make initializing overlapped-struct obvious for preventing a ciritical bug
-rw-r--r-- | src/core/iomgr/tcp_windows.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/iomgr/tcp_windows.c b/src/core/iomgr/tcp_windows.c index 71534eaa3d..940cd5bcde 100644 --- a/src/core/iomgr/tcp_windows.c +++ b/src/core/iomgr/tcp_windows.c @@ -289,7 +289,7 @@ static grpc_endpoint_write_status win_write(grpc_endpoint *ep, return ret; } - memset(&socket->write_info, 0, sizeof(OVERLAPPED)); + memset(&socket->write_info.overlapped, 0, sizeof(OVERLAPPED)); status = WSASend(socket->socket, buffers, tcp->write_slices.count, &bytes_sent, 0, &socket->write_info.overlapped, NULL); if (allocated) gpr_free(allocated); |