diff options
author | Kozlov Dmitry <dima@server> | 2010-10-14 16:06:14 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2010-10-14 16:06:14 +0400 |
commit | 719730c5021a365b585701d4534a37a9551d8395 (patch) | |
tree | c676c4524da6fb8d6fa7b877ec09e50d3e05c056 /accel-pptpd | |
parent | 84ff56a83a9f6b29d3300aff13ede9afc73b5a68 (diff) | |
download | accel-ppp-719730c5021a365b585701d4534a37a9551d8395.tar.gz accel-ppp-719730c5021a365b585701d4534a37a9551d8395.zip |
fixed bug of infinit TermReq and session hangup due to request counter was not decreased on transfer
Diffstat (limited to 'accel-pptpd')
-rw-r--r-- | accel-pptpd/ppp/ppp_fsm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pptpd/ppp/ppp_fsm.c b/accel-pptpd/ppp/ppp_fsm.c index 3478d252..dc079fd9 100644 --- a/accel-pptpd/ppp/ppp_fsm.c +++ b/accel-pptpd/ppp/ppp_fsm.c @@ -157,6 +157,7 @@ void ppp_fsm_timeout0(struct ppp_fsm_t *layer) { case FSM_Closing: case FSM_Stopping: + --layer->restart_counter; layer->send_term_req(layer); break; case FSM_Ack_Rcvd: @@ -454,6 +455,7 @@ void ppp_fsm_recv_code_rej_bad(struct ppp_fsm_t *layer) { case FSM_Opened: if (layer->layer_down) layer->layer_down(layer); + --layer->restart_counter; layer->send_term_req(layer); layer->fsm_state=FSM_Stopping; break; |