Commit 0b261bef authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

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

parent 3caa4e03
......@@ -194,7 +194,7 @@ static sock_shutdown_t sock_check_pollhup(void)
struct pollfd pfd;
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;
pfd.fd = fd[1];
......
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