mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-16 04:57:28 +00:00
server: Removed duplicate close of acceptfd (Coverity).
This commit is contained in:
parent
8f915156b9
commit
3199fe147d
|
@ -760,10 +760,7 @@ static int accept_into_socket( struct sock *sock, struct sock *acceptsock )
|
||||||
|
|
||||||
if (!(newfd = create_anonymous_fd( &sock_fd_ops, acceptfd, &acceptsock->obj,
|
if (!(newfd = create_anonymous_fd( &sock_fd_ops, acceptfd, &acceptsock->obj,
|
||||||
get_fd_options( acceptsock->fd ) )))
|
get_fd_options( acceptsock->fd ) )))
|
||||||
{
|
|
||||||
close( acceptfd );
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
acceptsock->state |= FD_WINE_CONNECTED|FD_READ|FD_WRITE;
|
acceptsock->state |= FD_WINE_CONNECTED|FD_READ|FD_WRITE;
|
||||||
|
|
Loading…
Reference in a new issue