summaryrefslogtreecommitdiff
path: root/accel-pppd/radius/acct.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-07-24 22:11:33 +0400
committerDmitry Kozlov <xeb@mail.ru>2014-07-24 22:11:33 +0400
commit768ad4d4f1930ffe1630e82789cd58191b651a64 (patch)
tree7db7adff9a766e5f936d9a7e68aebe5edea92d0b /accel-pppd/radius/acct.c
parentcddc20689a17a1b30d491cd2021f911a669f6dbc (diff)
downloadaccel-ppp-xebd-768ad4d4f1930ffe1630e82789cd58191b651a64.tar.gz
accel-ppp-xebd-768ad4d4f1930ffe1630e82789cd58191b651a64.zip
radius: exit from active interim request when termination event occures
Diffstat (limited to 'accel-pppd/radius/acct.c')
-rw-r--r--accel-pppd/radius/acct.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/accel-pppd/radius/acct.c b/accel-pppd/radius/acct.c
index 5816e50..fc4cae8 100644
--- a/accel-pppd/radius/acct.c
+++ b/accel-pppd/radius/acct.c
@@ -382,11 +382,12 @@ void rad_acct_stop(struct radius_pd_t *rpd)
if (!rpd->acct_req || !rpd->acct_req->serv)
return;
- if (rpd->acct_interim_timer.tpd) {
+ if (rpd->acct_interim_timer.tpd)
triton_timer_del(&rpd->acct_interim_timer);
- }
- if (rpd->acct_req) {
+ if (rpd->acct_req->timeout.tpd)
+ rad_server_req_exit(rpd->acct_req);
+
if (rpd->acct_req->hnd.tpd)
triton_md_unregister_handler(&rpd->acct_req->hnd, 0);
@@ -496,6 +497,5 @@ out:
rad_req_free(rpd->acct_req);
rpd->acct_req = NULL;
- }
}