diff options
author | Eshenko Dmitriy <dmitriy.eshenko@vyos.io> | 2022-08-04 23:44:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-04 23:44:50 +0300 |
commit | 34de38532c85fb7b61412e6dae58794bd93977f5 (patch) | |
tree | 0c0e649c32f2cca1d499891f338d028fe817b063 | |
parent | 61ba3af1d1e204df000fd78add1dbe1139eb5df7 (diff) | |
parent | 961bdeb07319c590d2c15d4186f12067644d94f7 (diff) | |
download | accel-ppp-34de38532c85fb7b61412e6dae58794bd93977f5.tar.gz accel-ppp-34de38532c85fb7b61412e6dae58794bd93977f5.zip |
Merge pull request #56 from DmitriyEshenko/T69
sstp: T69: Add timer befor context wakeup to preevent segfault
-rw-r--r-- | accel-pppd/ctrl/sstp/sstp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/ctrl/sstp/sstp.c b/accel-pppd/ctrl/sstp/sstp.c index f17db43..40c6ad9 100644 --- a/accel-pppd/ctrl/sstp/sstp.c +++ b/accel-pppd/ctrl/sstp/sstp.c @@ -2415,12 +2415,12 @@ static int sstp_connect(struct triton_md_handler_t *h) triton_context_register(&conn->ctx, &conn->ppp.ses); triton_context_call(&conn->ctx, (triton_event_func)sstp_start, conn); + triton_timer_add(&conn->ctx, &conn->timeout_timer, 0); triton_context_wakeup(&conn->ctx); - __sync_add_and_fetch(&stat_starting, 1); triton_event_fire(EV_CTRL_STARTING, &conn->ppp.ses); - triton_timer_add(&conn->ctx, &conn->timeout_timer, 0); + __sync_add_and_fetch(&stat_starting, 1); } return 0; |