From aa25b8981474d093e17c7bc76130f418afd4e49d Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Wed, 25 Oct 2017 10:22:13 +0300 Subject: ipoe: fixed bug Assign opt82_ses=ses if shared=0 --- accel-pppd/ctrl/ipoe/ipoe.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'accel-pppd') diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index 08478425..c3c39365 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -225,6 +225,8 @@ static struct ipoe_session *ipoe_session_lookup(struct ipoe_serv *serv, struct d if (!serv->opt_shared) { ses = list_entry(serv->sessions.next, typeof(*ses), entry); ses->UP = 0; + if (opt82_ses) + *opt82_ses = ses; return ses; } -- cgit v1.2.3