summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl
diff options
context:
space:
mode:
authorDmitriyEshenko <snooppy@mail.ua>2020-04-06 12:22:36 +0300
committerDmitriyEshenko <snooppy@mail.ua>2020-04-06 12:22:36 +0300
commitb2de172cb0023d6bcf049cc2c68e95039ef84ffd (patch)
tree09613e2bed12d4b4318a6bcb2d99f2d8ff728483 /accel-pppd/ctrl
parentc983d6f0763c572f656590b3ce74614c3ccbc276 (diff)
downloadaccel-ppp-b2de172cb0023d6bcf049cc2c68e95039ef84ffd.tar.gz
accel-ppp-b2de172cb0023d6bcf049cc2c68e95039ef84ffd.zip
pptp: T6: Check timer before modify
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r--accel-pppd/ctrl/pptp/pptp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/pptp/pptp.c b/accel-pppd/ctrl/pptp/pptp.c
index 3b90139f..881fa9a4 100644
--- a/accel-pppd/ctrl/pptp/pptp.c
+++ b/accel-pppd/ctrl/pptp/pptp.c
@@ -253,7 +253,8 @@ static int pptp_start_ctrl_conn_rqst(struct pptp_conn_t *conn)
if (send_pptp_start_ctrl_conn_rply(conn, PPTP_CONN_RES_SUCCESS, 0))
return -1;
- triton_timer_mod(&conn->timeout_timer, 0);
+ if (conn->timeout_timer.tpd)
+ triton_timer_mod(&conn->timeout_timer, 0);
conn->state = STATE_ESTB;