diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2011-03-01 15:53:45 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2011-03-01 15:53:45 +0300 |
commit | f02ea2ef3474d56814ec77a28fa1ea85c8afd31e (patch) | |
tree | eca3d77b16f8dda66ed6f61bb94c017e67cf5b56 /accel-pppd | |
parent | 16a935779f6909543c07f910f6afd9af72cc267a (diff) | |
download | accel-ppp-f02ea2ef3474d56814ec77a28fa1ea85c8afd31e.tar.gz accel-ppp-f02ea2ef3474d56814ec77a28fa1ea85c8afd31e.zip |
radius: fixed operation without accounting server
Diffstat (limited to 'accel-pppd')
-rw-r--r-- | accel-pppd/radius/acct.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/accel-pppd/radius/acct.c b/accel-pppd/radius/acct.c index 62387934..01e73af0 100644 --- a/accel-pppd/radius/acct.c +++ b/accel-pppd/radius/acct.c @@ -187,6 +187,9 @@ int rad_acct_start(struct radius_pd_t *rpd) time_t ts; unsigned int dt; + if (!conf_acct_secret) + return 0; + rpd->acct_req = rad_req_alloc(rpd, CODE_ACCOUNTING_REQUEST, rpd->ppp->username); if (!rpd->acct_req) { log_emerg("radius: out of memory\n"); @@ -278,6 +281,9 @@ void rad_acct_stop(struct radius_pd_t *rpd) time_t ts; unsigned int dt; + if (!conf_acct_secret) + return; + if (rpd->acct_interim_timer.tpd) triton_timer_del(&rpd->acct_interim_timer); |