server: Don't call close() on uninitialized memory in sock_check_pollhup.

This commit is contained in:
Sebastian Lackner 2013-12-31 17:50:56 +01:00 committed by Alexandre Julliard
parent 3caa4e035d
commit 0b261bef76
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ static sock_shutdown_t sock_check_pollhup(void)
struct pollfd pfd; struct pollfd pfd;
char dummy; char dummy;
if ( socketpair( AF_UNIX, SOCK_STREAM, 0, fd ) ) goto out; if ( socketpair( AF_UNIX, SOCK_STREAM, 0, fd ) ) return ret;
if ( shutdown( fd[0], 1 ) ) goto out; if ( shutdown( fd[0], 1 ) ) goto out;
pfd.fd = fd[1]; pfd.fd = fd[1];