diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2010-12-02 00:46:16 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2010-12-02 00:46:16 +0300 |
commit | 7d94707aa50264844865ec6e0f27f6bcc5e61b77 (patch) | |
tree | c435324223a6200d4686e2a1680407d8b1ed92e9 /accel-pptpd/radius | |
parent | 8502b9f40ff8fa15e12fc876079360dcc45a7666 (diff) | |
download | accel-ppp-xebd-7d94707aa50264844865ec6e0f27f6bcc5e61b77.tar.gz accel-ppp-xebd-7d94707aa50264844865ec6e0f27f6bcc5e61b77.zip |
radius: don't try to resend Interim-Update packets when acct-timeout is 0
Diffstat (limited to 'accel-pptpd/radius')
-rw-r--r-- | accel-pptpd/radius/acct.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/accel-pptpd/radius/acct.c b/accel-pptpd/radius/acct.c index cff2d09..06c1744 100644 --- a/accel-pptpd/radius/acct.c +++ b/accel-pptpd/radius/acct.c @@ -158,8 +158,10 @@ static void rad_acct_interim_update(struct triton_timer_t *t) rad_packet_change_int(rpd->acct_req->pack, "Acct-Delay-Time", 0); req_set_RA(rpd->acct_req, conf_acct_secret); rad_req_send(rpd->acct_req, conf_interim_verbose); - rpd->acct_req->timeout.period = conf_timeout * 1000; - triton_timer_add(rpd->ppp->ctrl->ctx, &rpd->acct_req->timeout, 0); + if (conf_acct_timeout) { + rpd->acct_req->timeout.period = conf_timeout * 1000; + triton_timer_add(rpd->ppp->ctrl->ctx, &rpd->acct_req->timeout, 0); + } } int rad_acct_start(struct radius_pd_t *rpd) |