diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2014-02-07 13:21:15 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-02-07 13:21:15 +0400 |
commit | 689ae47e9ba4891e597b3cac2ef4702d6759f91f (patch) | |
tree | d4249631c440aa886e00e987a6a9de601669f1f3 /accel-pppd/ctrl/ipoe | |
parent | dafe0eb3d8fd9bf9487149e9b98170f17f1e046f (diff) | |
download | accel-ppp-689ae47e9ba4891e597b3cac2ef4702d6759f91f.tar.gz accel-ppp-689ae47e9ba4891e597b3cac2ef4702d6759f91f.zip |
ipoe: fixed session lookup without option 82
Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
Diffstat (limited to 'accel-pppd/ctrl/ipoe')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index d9d71de..a2d2d0b 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -181,7 +181,7 @@ static struct ipoe_session *ipoe_session_lookup(struct ipoe_serv *serv, struct d } list_for_each_entry(ses, &serv->sessions, entry) { - opt82_match = 1; + opt82_match = pack->relay_agent != NULL; if (agent_circuit_id && !ses->agent_circuit_id) opt82_match = 0; @@ -1104,7 +1104,7 @@ static void ipoe_ses_recv_dhcpv4(struct dhcpv4_serv *dhcpv4, struct dhcpv4_packe agent_remote_id = NULL; } - opt82_match = 1; + opt82_match = pack->relay_agent != NULL; if (agent_circuit_id && !ses->agent_circuit_id) opt82_match = 0; |