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:
parent
ec1576e346
commit
abf8465659
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user