diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2014-09-26 15:53:39 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-09-26 15:53:39 +0400 |
commit | 1dfbc6bd3238a185c99ae4f26d7e57072c7906c7 (patch) | |
tree | 56c112ad04a6fbe5f18be9dee5d5878dd3187cec /accel-pppd/radius | |
parent | 652e35285ea23686345e5ed02336f90d2fda2ec5 (diff) | |
download | accel-ppp-1dfbc6bd3238a185c99ae4f26d7e57072c7906c7.tar.gz accel-ppp-1dfbc6bd3238a185c99ae4f26d7e57072c7906c7.zip |
radius: cancel starting accounting request if session terminated before server replied
Diffstat (limited to 'accel-pppd/radius')
-rw-r--r-- | accel-pppd/radius/radius.c | 4 |
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) |