1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

libcli:smb: Check return code of set_blocking

Found by covscan.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andreas Schneider 2020-11-24 17:35:26 +01:00 committed by Stefan Metzmacher
parent 7fa75b6993
commit 8d5d968dde

View File

@ -338,7 +338,10 @@ struct smbXcli_conn *smbXcli_conn_create(TALLOC_CTX *mem_ctx,
return NULL;
}
set_blocking(fd, false);
ret = set_blocking(fd, false);
if (ret < 0) {
goto error;
}
conn->sock_fd = fd;
conn->remote_name = talloc_strdup(conn, remote_name);