mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
s3:libsmb: close fd on error in cli_connect_nb()
metze
This commit is contained in:
parent
f3c39cfbe0
commit
b895f1fb01
@ -3060,6 +3060,8 @@ NTSTATUS cli_connect_nb(const char *host, const struct sockaddr_storage *dest_ss
|
||||
|
||||
cli = cli_state_create(NULL, fd, desthost, NULL, signing_state, flags);
|
||||
if (cli == NULL) {
|
||||
close(fd);
|
||||
fd = -1;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user