Skip to content
Snippets Groups Projects
Commit 7a509048 authored by Nicolas Noble's avatar Nicolas Noble
Browse files

Merge pull request #1420 from zeliard/master

make initializing overlapped-struct obvious for preventing a ciritical bug
parents d3e4be5f 3874ad08
No related branches found
No related tags found
No related merge requests found
...@@ -289,7 +289,7 @@ static grpc_endpoint_write_status win_write(grpc_endpoint *ep, ...@@ -289,7 +289,7 @@ static grpc_endpoint_write_status win_write(grpc_endpoint *ep,
return ret; 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, status = WSASend(socket->socket, buffers, tcp->write_slices.count,
&bytes_sent, 0, &socket->write_info.overlapped, NULL); &bytes_sent, 0, &socket->write_info.overlapped, NULL);
if (allocated) gpr_free(allocated); if (allocated) gpr_free(allocated);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment