git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1c90e1
)
s3: Fix Coverity ID 2743: CHECKED_RETURN
author
Volker Lendecke
<vl@samba.org>
Thu, 19 Apr 2012 09:15:46 +0000
(11:15 +0200)
committer
Volker Lendecke
<vl@samba.org>
Thu, 19 Apr 2012 15:37:38 +0000
(17:37 +0200)
source3/lib/background.c
patch
|
blob
|
history
diff --git
a/source3/lib/background.c
b/source3/lib/background.c
index aa2a77d59afa37c61bdab304e459be3f9cdd318e..6a9178376c6701f05beb0fc0be15649d4259e01d 100644
(file)
--- 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"));
}
}