1
0
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:
Volker Lendecke 2015-07-16 15:00:12 +02:00 committed by Jeremy Allison
parent f58ecfdbfc
commit 93af8a1a23

View File

@ -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,