server: Do not call sock_reselect() on an uninitialized socket.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
920f654ffb
commit
afad281dd1
|
@ -838,8 +838,10 @@ static void sock_reselect_async( struct fd *fd, struct async_queue *queue )
|
||||||
{
|
{
|
||||||
struct sock *sock = get_fd_user( fd );
|
struct sock *sock = get_fd_user( fd );
|
||||||
|
|
||||||
/* ignore reselect on ifchange queue */
|
/* Don't reselect the ifchange queue; we always ask for POLLIN.
|
||||||
if (&sock->ifchange_q != queue)
|
* Don't reselect an uninitialized socket; we can't call set_fd_events() on
|
||||||
|
* a pseudo-fd. */
|
||||||
|
if (queue != &sock->ifchange_q && sock->type)
|
||||||
sock_reselect( sock );
|
sock_reselect( sock );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue