server: Don't call close() on uninitialized memory in sock_check_pollhup.
This commit is contained in:
parent
3caa4e035d
commit
0b261bef76
|
@ -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];
|
||||||
|
|
Loading…
Reference in New Issue