From c4c6ceed2b0f973022fc429a7e709c057c95e9dc Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Mon, 29 Aug 2011 01:16:21 +0400 Subject: ppp: ccp,ipcp,ipv6cp: set state of fsm to closed after layer was finished --- accel-pppd/ppp/ppp_ccp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'accel-pppd/ppp/ppp_ccp.c') diff --git a/accel-pppd/ppp/ppp_ccp.c b/accel-pppd/ppp/ppp_ccp.c index 9602f7dd..aac7ac2f 100644 --- a/accel-pppd/ppp/ppp_ccp.c +++ b/accel-pppd/ppp/ppp_ccp.c @@ -213,6 +213,8 @@ static void ccp_layer_finished(struct ppp_fsm_t *fsm) ppp_layer_passive(ccp->ppp, &ccp->ld); else if (!ccp->ppp->terminating) ppp_terminate(ccp->ppp, TERM_USER_ERROR, 0); + + fsm->fsm_state = FSM_Closed; } static void ccp_layer_down(struct ppp_fsm_t *fsm) -- cgit v1.2.3