summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2011-08-26 23:50:22 +0400
committerKozlov Dmitry <xeb@mail.ru>2011-08-26 23:50:22 +0400
commit2ae178c12aced47699cbb252f6a67defb0d0bbe7 (patch)
treecc5d1fb429e1fed0fd52227dfa87d827909077a9 /accel-pppd/ppp
parent00120e890feef1afc05ac492dfdba91eaf33737d (diff)
downloadaccel-ppp-2ae178c12aced47699cbb252f6a67defb0d0bbe7.tar.gz
accel-ppp-2ae178c12aced47699cbb252f6a67defb0d0bbe7.zip
ppp: fix infinit layer_down loop
Diffstat (limited to 'accel-pppd/ppp')
-rw-r--r--accel-pppd/ppp/ppp_fsm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/accel-pppd/ppp/ppp_fsm.c b/accel-pppd/ppp/ppp_fsm.c
index c920b5c..27021d1 100644
--- a/accel-pppd/ppp/ppp_fsm.c
+++ b/accel-pppd/ppp/ppp_fsm.c
@@ -141,6 +141,7 @@ void ppp_fsm_close(struct ppp_fsm_t *layer)
layer->fsm_state=FSM_Closing;
break;
case FSM_Opened:
+ layer->fsm_state=FSM_Closing;
if (layer->layer_down) layer->layer_down(layer);
case FSM_Req_Sent:
case FSM_Ack_Rcvd: