server: Do not allocate a connect_req structure for nonblocking sockets (Valgrind).
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5636088871
commit
60dd202fbd
|
@ -2289,9 +2289,6 @@ static void sock_ioctl( struct fd *fd, ioctl_code_t code, struct async *async )
|
|||
if (!send_len) return;
|
||||
}
|
||||
|
||||
if (!(req = mem_alloc( sizeof(*req) )))
|
||||
return;
|
||||
|
||||
sock->state = SOCK_CONNECTING;
|
||||
|
||||
if (params->synchronous && sock->nonblocking)
|
||||
|
@ -2301,6 +2298,9 @@ static void sock_ioctl( struct fd *fd, ioctl_code_t code, struct async *async )
|
|||
return;
|
||||
}
|
||||
|
||||
if (!(req = mem_alloc( sizeof(*req) )))
|
||||
return;
|
||||
|
||||
req->async = (struct async *)grab_object( async );
|
||||
req->iosb = async_get_iosb( async );
|
||||
req->sock = (struct sock *)grab_object( sock );
|
||||
|
|
Loading…
Reference in New Issue