1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Fix possible close of invalid fd if call to socket() returns -1.

(This used to be commit f7d2f69299)
This commit is contained in:
Tim Potter 2008-02-18 10:43:46 +11:00 committed by Jeremy Allison
parent ec1576e346
commit abf8465659

View File

@ -1933,6 +1933,7 @@ int create_pipe_sock(const char *socket_dir,
out_close: out_close:
SAFE_FREE(path); SAFE_FREE(path);
if (sock != -1)
close(sock); close(sock);
out_umask: out_umask: