summaryrefslogtreecommitdiff
path: root/source3/lib/background.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-04-19 11:15:46 +0200
committerVolker Lendecke <vl@samba.org>2012-04-19 17:37:38 +0200
commit7011d7ef188de916b8428acc40efd5264b268d8d (patch)
treeea3de29063026b749082218715b56768c3d26f7e /source3/lib/background.c
parentf1c90e12f500201975ca63f175a48575bc9a7505 (diff)
downloadsamba-7011d7ef188de916b8428acc40efd5264b268d8d.tar.gz
samba-7011d7ef188de916b8428acc40efd5264b268d8d.tar.bz2
samba-7011d7ef188de916b8428acc40efd5264b268d8d.zip
s3: Fix Coverity ID 2743: CHECKED_RETURN
Diffstat (limited to 'source3/lib/background.c')
-rw-r--r--source3/lib/background.c9
1 files changed, 6 insertions, 3 deletions
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"));
}
}