mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
libldap: Fix CID 1308982 Unchecked return value from library
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Jul 1 00:11:41 CEST 2015 on sn-devel-104
This commit is contained in:
parent
2749e08437
commit
e1a87d8676
@ -514,7 +514,13 @@ static void ldap_connect_got_sock(struct composite_context *ctx,
|
||||
TALLOC_FREE(state->sock);
|
||||
|
||||
smb_set_close_on_exec(fd);
|
||||
set_blocking(fd, false);
|
||||
|
||||
ret = set_blocking(fd, false);
|
||||
if (ret == -1) {
|
||||
NTSTATUS status = map_nt_error_from_unix_common(errno);
|
||||
composite_error(state->ctx, status);
|
||||
return;
|
||||
}
|
||||
|
||||
ret = tstream_bsd_existing_socket(state, fd, &state->raw);
|
||||
if (ret == -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user