summaryrefslogtreecommitdiff
path: root/accel-pptpd
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-10-14 16:06:14 +0400
committerKozlov Dmitry <dima@server>2010-10-14 16:06:14 +0400
commit719730c5021a365b585701d4534a37a9551d8395 (patch)
treec676c4524da6fb8d6fa7b877ec09e50d3e05c056 /accel-pptpd
parent84ff56a83a9f6b29d3300aff13ede9afc73b5a68 (diff)
downloadaccel-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.c2
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;