summaryrefslogtreecommitdiff
path: root/accel-pppd/radius/radius.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/radius/radius.c')
-rw-r--r--accel-pppd/radius/radius.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/accel-pppd/radius/radius.c b/accel-pppd/radius/radius.c
index ec7d9119..c94769c5 100644
--- a/accel-pppd/radius/radius.c
+++ b/accel-pppd/radius/radius.c
@@ -385,8 +385,10 @@ static void ses_finished(struct ap_session *ses)
if (rpd->acct_req) {
if (rpd->acct_started)
rad_acct_stop_defer(rpd);
- else
+ else {
+ rad_server_req_cancel(rpd->acct_req);
rad_req_free(rpd->acct_req);
+ }
}
if (rpd->dm_coa_req)