summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2018-01-24 10:25:33 +0300
committerDmitry Kozlov <xeb@mail.ru>2018-01-24 10:25:33 +0300
commit8b265c99a14ad6c7f3eeb59a8cff56870eb5f592 (patch)
treed6193fc2b1aab3fffd2b1d4d9d63b33dad744146
parenteb7e9895fce631d8a95be84a06987ede394c2e39 (diff)
downloadaccel-ppp-xebd-8b265c99a14ad6c7f3eeb59a8cff56870eb5f592.tar.gz
accel-ppp-xebd-8b265c99a14ad6c7f3eeb59a8cff56870eb5f592.zip
ppp: fixed bug in ppp_terminate
-rw-r--r--accel-pppd/ppp/ppp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/accel-pppd/ppp/ppp.c b/accel-pppd/ppp/ppp.c
index e511bf8..053d3b1 100644
--- a/accel-pppd/ppp/ppp.c
+++ b/accel-pppd/ppp/ppp.c
@@ -572,8 +572,10 @@ int __export ppp_terminate(struct ap_session *ses, int hard)
}
}
- if (!s)
+ if (!s) {
destablish_ppp(ppp);
+ return 0;
+ }
return 1;
}