diff options
author | DmitriyEshenko <snooppy@mail.ua> | 2020-04-06 12:22:36 +0300 |
---|---|---|
committer | DmitriyEshenko <snooppy@mail.ua> | 2020-04-06 12:22:36 +0300 |
commit | b2de172cb0023d6bcf049cc2c68e95039ef84ffd (patch) | |
tree | 09613e2bed12d4b4318a6bcb2d99f2d8ff728483 /accel-pppd/ctrl | |
parent | c983d6f0763c572f656590b3ce74614c3ccbc276 (diff) | |
download | accel-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.c | 3 |
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; |