1
0
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:
Stefan Metzmacher 2011-11-21 18:03:07 +01:00
parent f3c39cfbe0
commit b895f1fb01

View File

@ -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;
}