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:22:13 +0300 |
commit | 34fac264e132d436f2405da114d4291555cd339f (patch) | |
tree | 12b86a38e07c52a0852f1f0d2eee6f0ce68eb9e4 /accel-pppd/ctrl | |
parent | 348a264841c6d9681aee0327d704d61893c8d726 (diff) | |
download | accel-ppp-34fac264e132d436f2405da114d4291555cd339f.tar.gz accel-ppp-34fac264e132d436f2405da114d4291555cd339f.zip |
ipoe: fixed bug
Assign opt82_ses=ses if shared=0
Diffstat (limited to 'accel-pppd/ctrl')
-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 80d06a62..ae320b7a 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -241,6 +241,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; } |