diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-06-21 16:40:34 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-06-21 16:40:34 +0400 |
commit | ef7a38b7a8f74315d6546564585c679da1a714ae (patch) | |
tree | 231b065dc0b9998ae1f945141780d431832d66f0 /accel-pppd/ppp | |
parent | 9fa73e091942f7420de44fa1433725a3abe960e9 (diff) | |
download | accel-ppp-ef7a38b7a8f74315d6546564585c679da1a714ae.tar.gz accel-ppp-ef7a38b7a8f74315d6546564585c679da1a714ae.zip |
ppp: fixed unexpected lcp timer start
Diffstat (limited to 'accel-pppd/ppp')
-rw-r--r-- | accel-pppd/ppp/ppp_lcp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/accel-pppd/ppp/ppp_lcp.c b/accel-pppd/ppp/ppp_lcp.c index 5813517..c93c100 100644 --- a/accel-pppd/ppp/ppp_lcp.c +++ b/accel-pppd/ppp/ppp_lcp.c @@ -579,6 +579,9 @@ static int lcp_recv_conf_ack(struct ppp_lcp_t *lcp, uint8_t *data, int size) static void lcp_update_echo_timer(struct ppp_lcp_t *lcp) { + if (!lcp->echo_timer.expire) + return; + if (lcp->echo_timer.period != conf_echo_interval * 1000) { if (!conf_echo_interval) triton_timer_del(&lcp->echo_timer); |