From: Volker Lendecke Date: Thu, 19 Apr 2012 09:15:46 +0000 (+0200) Subject: s3: Fix Coverity ID 2743: CHECKED_RETURN X-Git-Tag: samba-4.0.0alpha20~181 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7011d7ef188de916b8428acc40efd5264b268d8d;p=thirdparty%2Fsamba.git s3: Fix Coverity ID 2743: CHECKED_RETURN --- diff --git a/source3/lib/background.c b/source3/lib/background.c index aa2a77d59af..6a9178376c6 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")); } }