diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2018-01-24 10:25:33 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2018-01-24 10:25:33 +0300 |
commit | 8b265c99a14ad6c7f3eeb59a8cff56870eb5f592 (patch) | |
tree | d6193fc2b1aab3fffd2b1d4d9d63b33dad744146 /accel-pppd/ppp/ppp.c | |
parent | eb7e9895fce631d8a95be84a06987ede394c2e39 (diff) | |
download | accel-ppp-8b265c99a14ad6c7f3eeb59a8cff56870eb5f592.tar.gz accel-ppp-8b265c99a14ad6c7f3eeb59a8cff56870eb5f592.zip |
ppp: fixed bug in ppp_terminate
Diffstat (limited to 'accel-pppd/ppp/ppp.c')
-rw-r--r-- | accel-pppd/ppp/ppp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/accel-pppd/ppp/ppp.c b/accel-pppd/ppp/ppp.c index e511bf86..053d3b17 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; } |