summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp/ppp_lcp.c
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2012-07-11 16:58:26 +0400
committerKozlov Dmitry <xeb@mail.ru>2012-07-11 16:58:26 +0400
commit7b4edf7fe4bd0e20979fdb39ff851b13b55d1acf (patch)
tree2ffdb1c9a712aecd9011547486c67055c8894662 /accel-pppd/ppp/ppp_lcp.c
parent783fd56a74c277c3c0482d126460cf0b2dd5a290 (diff)
parent8e46d2416a2e7ab563f6b3b1ff761799ccbcf0f4 (diff)
downloadaccel-ppp-7b4edf7fe4bd0e20979fdb39ff851b13b55d1acf.tar.gz
accel-ppp-7b4edf7fe4bd0e20979fdb39ff851b13b55d1acf.zip
Merge commit '8e46d2416a2e7ab563f6b3b1ff761799ccbcf0f4'
Diffstat (limited to 'accel-pppd/ppp/ppp_lcp.c')
-rw-r--r--accel-pppd/ppp/ppp_lcp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/accel-pppd/ppp/ppp_lcp.c b/accel-pppd/ppp/ppp_lcp.c
index b081e87..0318e54 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);