From 435c18ba35f9515727e63b4de92912d7567b5534 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Wed, 24 Jan 2018 10:25:33 +0300 Subject: ppp: fixed bug in ppp_terminate --- accel-pppd/ppp/ppp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'accel-pppd') 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; } -- cgit v1.2.3