summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2015-11-25 13:28:07 +0300
committerDmitry Kozlov <xeb@mail.ru>2015-11-25 13:28:07 +0300
commit0227b8ba98624c54665223e9d82921f17bc01d66 (patch)
tree697be54add6ec5292120241ade0bb30c52a1a1f7
parent084510b30b63008b371343fe28ab7bfe5e5ecd36 (diff)
downloadaccel-ppp-0227b8ba98624c54665223e9d82921f17bc01d66.tar.gz
accel-ppp-0227b8ba98624c54665223e9d82921f17bc01d66.zip
ipoe: use session's lease time instead of config one for session timeout timer
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index d5f0c81..607c720 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -957,7 +957,7 @@ static void __ipoe_session_activate(struct ipoe_session *ses)
ses->timer.expire = ipoe_session_timeout;
ses->timer.period = 0;
- ses->timer.expire_tv.tv_sec = conf_lease_timeout ? conf_lease_timeout : ses->lease_time;
+ ses->timer.expire_tv.tv_sec = ses->lease_time;
if (ses->timer.tpd)
triton_timer_mod(&ses->timer, 0);
}