Skip to content
Snippets Groups Projects
Commit 3874ad08 authored by zeliard's avatar zeliard
Browse files

make initializing overlapped-struct obvious for preventing a ciritical bug

parent 1685d773
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,
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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment