summaryrefslogtreecommitdiff
path: root/accel-pptpd/ppp/ppp_lcp.c
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-12-02 20:06:03 +0300
committerKozlov Dmitry <dima@server>2010-12-02 20:06:03 +0300
commit0984abada7f7c38510f953a65a8449e8481140dc (patch)
tree29d10a8637773cd9bbbfceacf5fc1a7b5e930ce7 /accel-pptpd/ppp/ppp_lcp.c
parentfd3509f7c4e9052a4e856b9a008c74df3abbe136 (diff)
downloadaccel-ppp-0984abada7f7c38510f953a65a8449e8481140dc.tar.gz
accel-ppp-0984abada7f7c38510f953a65a8449e8481140dc.zip
pppd_compat: fixed incorrect array size
Diffstat (limited to 'accel-pptpd/ppp/ppp_lcp.c')
-rw-r--r--accel-pptpd/ppp/ppp_lcp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/accel-pptpd/ppp/ppp_lcp.c b/accel-pptpd/ppp/ppp_lcp.c
index 8c539a7c..0906ad0d 100644
--- a/accel-pptpd/ppp/ppp_lcp.c
+++ b/accel-pptpd/ppp/ppp_lcp.c
@@ -176,7 +176,10 @@ static void lcp_layer_finished(struct ppp_fsm_t *fsm)
stop_echo(lcp);
if (lcp->started) {
lcp->started = 0;
- ppp_layer_finished(lcp->ppp, &lcp->ld);
+ if (lcp->ppp->terminating)
+ ppp_layer_finished(lcp->ppp, &lcp->ld);
+ else
+ ppp_terminate(lcp->ppp, TERM_NAS_ERROR, 1);
} else
ppp_terminate(lcp->ppp, TERM_NAS_ERROR, 1);
}