diff options
author | Volker Lendecke <vl@samba.org> | 2017-04-25 17:32:43 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-04-25 23:07:25 +0200 |
commit | 04b2a18a1166872d8bb74e1d3e04376ebbecf6b9 (patch) | |
tree | d251ef670e6086215d1093ac6c58c9ee4e1ab42c /source3/lib/ctdbd_conn.c | |
parent | f5c3904f356c6f98e464a908ad2b76e44b9e2023 (diff) | |
download | samba-04b2a18a1166872d8bb74e1d3e04376ebbecf6b9.tar.gz |
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
Diffstat (limited to 'source3/lib/ctdbd_conn.c')
-rw-r--r-- | source3/lib/ctdbd_conn.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c index c629d3c31e6..053d1b57e71 100644 --- a/source3/lib/ctdbd_conn.c +++ b/source3/lib/ctdbd_conn.c @@ -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, |