summaryrefslogtreecommitdiff
path: root/accel-pppd/radius
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/radius')
-rw-r--r--accel-pppd/radius/req.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/radius/req.c b/accel-pppd/radius/req.c
index a384f236..1fa79ad2 100644
--- a/accel-pppd/radius/req.c
+++ b/accel-pppd/radius/req.c
@@ -209,7 +209,8 @@ out_err:
static void req_wakeup(struct rad_req_t *req)
{
struct triton_context_t *ctx = req->rpd->ppp->ctrl->ctx;
- triton_timer_del(&req->timeout);
+ if (req->timeout.tpd)
+ triton_timer_del(&req->timeout);
triton_md_unregister_handler(&req->hnd);
triton_context_unregister(&req->ctx);
triton_context_wakeup(ctx);