diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2010-06-09 10:04:44 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-06-10 10:17:38 -0400 |
commit | bb1487fef5d19a7b1536fc42e25a08f7d4c43e1b (patch) | |
tree | eeee7524c49b3f3dcb0cdfa5f8c6758a985e6bb3 /src/responder | |
parent | a40b812b63e9f32c946761cb9cb7315ee57376ed (diff) | |
download | sssd-bb1487fef5d19a7b1536fc42e25a08f7d4c43e1b.tar.gz sssd-bb1487fef5d19a7b1536fc42e25a08f7d4c43e1b.tar.bz2 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/responder')
-rw-r--r-- | src/responder/common/responder_dp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/responder/common/responder_dp.c b/src/responder/common/responder_dp.c index 9f8f5263..a5c1c510 100644 --- a/src/responder/common/responder_dp.c +++ b/src/responder/common/responder_dp.c @@ -155,7 +155,7 @@ static void sss_dp_invoke_callback(struct tevent_context *ev, tv = tevent_timeval_current(); tev = tevent_add_timer(sdp_req->ev, sdp_req, tv, sss_dp_invoke_callback, sdp_req); - if (!te) { + if (!tev) { /* Out of memory or other serious error */ goto done; } |