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:26:50 +0300 |
commit | 435c18ba35f9515727e63b4de92912d7567b5534 (patch) | |
tree | 9f46a5b213b8718ed73aeff4ceafe6ad2075b888 | |
parent | cb9cf0a9c1e88e5fea156b5048be439d9763dc70 (diff) | |
download | accel-ppp-435c18ba35f9515727e63b4de92912d7567b5534.tar.gz accel-ppp-435c18ba35f9515727e63b4de92912d7567b5534.zip |
ppp: fixed bug in ppp_terminate
-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 264ae136..1ee26f4e 100644 --- a/accel-pppd/ppp/ppp.c +++ b/accel-pppd/ppp/ppp.c @@ -558,8 +558,10 @@ int __export ppp_terminate(struct ap_session *ses, int hard) } } - if (!s) + if (!s) { destablish_ppp(ppp); + return 0; + } return 1; } |