From 689ae47e9ba4891e597b3cac2ef4702d6759f91f Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Fri, 7 Feb 2014 13:21:15 +0400 Subject: ipoe: fixed session lookup without option 82 Signed-off-by: Dmitry Kozlov --- accel-pppd/ctrl/ipoe/ipoe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'accel-pppd/ctrl') 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; -- cgit v1.2.3