mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
vfs: Fix CID 1035384 Unchecked return value from library
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
f58ecfdbfc
commit
93af8a1a23
@ -704,7 +704,13 @@ static bool vfswrap_init_asys_ctx(struct smbd_server_connection *conn)
|
||||
|
||||
fd = asys_signalfd(conn->asys_ctx);
|
||||
|
||||
set_blocking(fd, false);
|
||||
ret = set_blocking(fd, false);
|
||||
if (ret != 0) {
|
||||
DBG_WARNING("set_blocking failed: %s\n", strerror(ret));
|
||||
asys_context_destroy(conn->asys_ctx);
|
||||
conn->asys_ctx = NULL;
|
||||
return false;
|
||||
}
|
||||
|
||||
conn->asys_fde = tevent_add_fd(conn->ev_ctx, conn, fd,
|
||||
TEVENT_FD_READ,
|
||||
|
Loading…
x
Reference in New Issue
Block a user