diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2017-10-25 10:22:13 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2017-10-25 10:24:05 +0300 |
commit | aa25b8981474d093e17c7bc76130f418afd4e49d (patch) | |
tree | bef24617574bddc7149ca0d2a00c70ca2a2d20e9 | |
parent | dc9638c595cffb142d0ae302a0e3210c67e83087 (diff) | |
download | accel-ppp-aa25b8981474d093e17c7bc76130f418afd4e49d.tar.gz accel-ppp-aa25b8981474d093e17c7bc76130f418afd4e49d.zip |
ipoe: fixed bug
Assign opt82_ses=ses if shared=0
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |