summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@v111117.hosted-by-vdsina.ru>2019-05-10 10:24:06 +0300
committerroot <root@v111117.hosted-by-vdsina.ru>2019-05-10 10:24:06 +0300
commitfda5ea9713d52d101fcafe6a01de654d3dc7da55 (patch)
tree5c864d4c594f00a4a96c58f1757df97236dd1fcb
parent2d5fb5e4aad86c440ecb7ebd4deb93901e21b8f3 (diff)
downloadaccel-ppp-fda5ea9713d52d101fcafe6a01de654d3dc7da55.tar.gz
accel-ppp-fda5ea9713d52d101fcafe6a01de654d3dc7da55.zip
Fix bug after radius server recovery
-rw-r--r--accel-pppd/radius/acct.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/radius/acct.c b/accel-pppd/radius/acct.c
index e4daedb..b17016d 100644
--- a/accel-pppd/radius/acct.c
+++ b/accel-pppd/radius/acct.c
@@ -88,7 +88,8 @@ static void rad_acct_recv(struct rad_req_t *req)
stat_accm_add(req->serv->stat_interim_query_1m, dt);
stat_accm_add(req->serv->stat_interim_query_5m, dt);
- triton_timer_del(&req->timeout);
+ if (req->timeout.tpd)
+ triton_timer_del(&req->timeout);
triton_md_unregister_handler(&req->hnd, 1);