From 7011d7ef188de916b8428acc40efd5264b268d8d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 19 Apr 2012 11:15:46 +0200 Subject: s3: Fix Coverity ID 2743: CHECKED_RETURN --- source3/lib/background.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/lib/background.c b/source3/lib/background.c index aa2a77d59a..6a9178376c 100644 --- a/source3/lib/background.c +++ b/source3/lib/background.c @@ -121,9 +121,12 @@ static void background_job_trigger( struct background_job_state *state = talloc_get_type_abort( private_data, struct background_job_state); - if (state->wakeup_req != NULL) { - tevent_req_set_endtime(state->wakeup_req, state->ev, - timeval_zero()); + if (state->wakeup_req == NULL) { + return; + } + if (!tevent_req_set_endtime(state->wakeup_req, state->ev, + timeval_zero())) { + DEBUG(10, ("tevent_req_set_endtime failed\n")); } } -- cgit