summaryrefslogtreecommitdiffstats
path: root/src/providers/data_provider_callbacks.c
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-06-09 10:04:44 -0400
committerStephen Gallagher <sgallagh@redhat.com>2010-06-10 10:17:38 -0400
commitbb1487fef5d19a7b1536fc42e25a08f7d4c43e1b (patch)
treeeeee7524c49b3f3dcb0cdfa5f8c6758a985e6bb3 /src/providers/data_provider_callbacks.c
parenta40b812b63e9f32c946761cb9cb7315ee57376ed (diff)
downloadsssd-bb1487fef5d19a7b1536fc42e25a08f7d4c43e1b.tar.gz
sssd-bb1487fef5d19a7b1536fc42e25a08f7d4c43e1b.tar.xz
sssd-bb1487fef5d19a7b1536fc42e25a08f7d4c43e1b.zip
Check the correct variable for NULL after creating timer
In several places, we were creating a new timer and assigning it to the tev variable, but then we were checking for NULL from the te variable (which, incidentally, is guaranteed never to be NULL in this situation) https://fedorahosted.org/sssd/ticket/523
Diffstat (limited to 'src/providers/data_provider_callbacks.c')
-rw-r--r--src/providers/data_provider_callbacks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/data_provider_callbacks.c b/src/providers/data_provider_callbacks.c
index 8ed2e5b6..9d8946a8 100644
--- a/src/providers/data_provider_callbacks.c
+++ b/src/providers/data_provider_callbacks.c
@@ -99,7 +99,7 @@ static void be_run_cb_step(struct tevent_context *ev, struct tevent_timer *te,
tev = tevent_add_timer(cb_ctx->be->ev, cb_ctx, soon,
be_run_cb_step,
cb_ctx);
- if (!te) {
+ if (!tev) {
DEBUG(0, ("Out of memory. Could not invoke callbacks\n"));
goto final;
}