mirror of
https://github.com/samba-team/samba.git
synced 2025-03-23 06:50:21 +03:00
tevent: Fix CID 1414792 Unchecked return value
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
212815969f
commit
95c81fe5dc
@ -375,6 +375,7 @@ static bool test_event_fd1(struct torture_context *tctx,
|
||||
const void *test_data)
|
||||
{
|
||||
struct test_event_fd1_state state;
|
||||
int ret;
|
||||
|
||||
ZERO_STRUCT(state);
|
||||
state.tctx = tctx;
|
||||
@ -415,7 +416,9 @@ static bool test_event_fd1(struct torture_context *tctx,
|
||||
*/
|
||||
state.sock[0] = -1;
|
||||
state.sock[1] = -1;
|
||||
socketpair(AF_UNIX, SOCK_STREAM, 0, state.sock);
|
||||
|
||||
ret = socketpair(AF_UNIX, SOCK_STREAM, 0, state.sock);
|
||||
torture_assert(tctx, ret == 0, "socketpair() failed");
|
||||
|
||||
state.te = tevent_add_timer(state.ev, state.ev,
|
||||
timeval_current_ofs(0,1000),
|
||||
|
Loading…
x
Reference in New Issue
Block a user