summaryrefslogtreecommitdiff
path: root/accel-pptpd/ppp/ppp_lcp.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2010-12-24 22:51:34 +0300
committerDmitry Kozlov <xeb@mail.ru>2010-12-24 22:51:34 +0300
commit00b656fa15b7ff7ee0537dc92851d1185e5f5622 (patch)
treefd10c8d67fa27214f83631003d75254feb5c52ed /accel-pptpd/ppp/ppp_lcp.c
parent88db624127e11d4a1d1000a5ebcfb6757a05f3a4 (diff)
downloadaccel-ppp-00b656fa15b7ff7ee0537dc92851d1185e5f5622.tar.gz
accel-ppp-00b656fa15b7ff7ee0537dc92851d1185e5f5622.zip
ppp: fix session hangup
Diffstat (limited to 'accel-pptpd/ppp/ppp_lcp.c')
-rw-r--r--accel-pptpd/ppp/ppp_lcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pptpd/ppp/ppp_lcp.c b/accel-pptpd/ppp/ppp_lcp.c
index f433ab8a..0b5a5175 100644
--- a/accel-pptpd/ppp/ppp_lcp.c
+++ b/accel-pptpd/ppp/ppp_lcp.c
@@ -698,7 +698,7 @@ static void lcp_recv(struct ppp_handler_t*h)
int r;
char *term_msg;
- if (lcp->fsm.fsm_state == FSM_Initial || lcp->fsm.fsm_state == FSM_Closed) {
+ if (lcp->fsm.fsm_state == FSM_Initial || lcp->fsm.fsm_state == FSM_Closed || lcp->ppp->terminating) {
/*if (conf_ppp_verbose)
log_ppp_warn("LCP: discaring packet\n");
lcp_send_proto_rej(ccp->ppp, htons(PPP_CCP));*/