summaryrefslogtreecommitdiff
path: root/accel-pptpd/ppp/ppp.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2010-11-15 21:14:18 +0300
committerDmitry Kozlov <xeb@mail.ru>2010-11-15 21:14:18 +0300
commit02cdfe60b703299caeb10dc49607101e40520eba (patch)
tree871f88b187771a1079705c66d1e8abd18bcbcba6 /accel-pptpd/ppp/ppp.c
parent1cfae5217776e8f527b9529e19e22730c5977d66 (diff)
downloadaccel-ppp-02cdfe60b703299caeb10dc49607101e40520eba.tar.gz
accel-ppp-02cdfe60b703299caeb10dc49607101e40520eba.zip
ppp: fixed incorrect session termination if authentication failed
Diffstat (limited to 'accel-pptpd/ppp/ppp.c')
-rw-r--r--accel-pptpd/ppp/ppp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pptpd/ppp/ppp.c b/accel-pptpd/ppp/ppp.c
index ceefc1ea..a26e6446 100644
--- a/accel-pptpd/ppp/ppp.c
+++ b/accel-pptpd/ppp/ppp.c
@@ -397,7 +397,7 @@ void __export ppp_layer_finished(struct ppp_t *ppp, struct ppp_layer_data_t *d)
list_for_each_entry(n, &ppp->layers, entry) {
list_for_each_entry(d, &n->items, entry) {
- if (!d->finished)
+ if (d->starting && !d->finished)
return;
}
}