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:
parent
7fa75b6993
commit
8d5d968dde
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user