Commit 0839773d authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

server: Release correct sockets in poll_socket().

parent f0cb616f
...@@ -3046,7 +3046,7 @@ static void poll_socket( struct sock *poll_sock, struct async *async, int exclus ...@@ -3046,7 +3046,7 @@ static void poll_socket( struct sock *poll_sock, struct async *async, int exclus
req->sockets[i].sock = (struct sock *)get_handle_obj( current->process, sockets[i].socket, 0, &sock_ops ); req->sockets[i].sock = (struct sock *)get_handle_obj( current->process, sockets[i].socket, 0, &sock_ops );
if (!req->sockets[i].sock) if (!req->sockets[i].sock)
{ {
for (j = 0; j < i; ++j) release_object( req->sockets[i].sock ); for (j = 0; j < i; ++j) release_object( req->sockets[j].sock );
if (req->timeout) remove_timeout_user( req->timeout ); if (req->timeout) remove_timeout_user( req->timeout );
free( req ); free( req );
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment