mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
lib: Fix CID 1405493 Error handling issues (CHECKED_RETURN)
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): Tue Apr 25 23:07:25 CEST 2017 on sn-devel-144
This commit is contained in:
parent
f5c3904f35
commit
04b2a18a11
@ -440,7 +440,12 @@ static int ctdb_read_req(struct ctdbd_connection *conn, uint32_t reqid,
|
||||
**/
|
||||
int ctdbd_setup_fde(struct ctdbd_connection *conn, struct tevent_context *ev)
|
||||
{
|
||||
set_blocking(conn->fd, false);
|
||||
int ret;
|
||||
|
||||
ret = set_blocking(conn->fd, false);
|
||||
if (ret == -1) {
|
||||
return errno;
|
||||
}
|
||||
|
||||
conn->fde = tevent_add_fd(ev,
|
||||
conn,
|
||||
|
Loading…
Reference in New Issue
Block a user