From a5473ad84dc884f64bab3208da7f1b30c0a5015b Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Wed, 28 Jan 2015 11:11:06 +0300 Subject: ipoe: fixed bug (v2) --- accel-pppd/ctrl/ipoe/ipoe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accel-pppd/ctrl') diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index cfaaec4..3296bd3 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -916,7 +916,7 @@ static void __ipoe_session_activate(struct ipoe_session *ses) ses->ses.ipv6 = ipdb_get_ipv6(&ses->ses); if (!ses->ses.ipv6) log_ppp_warn("ipoe: no free IPv6 address\n"); - if (!ses->ses.ipv6->peer_intf_id) + else if (!ses->ses.ipv6->peer_intf_id) ses->ses.ipv6->peer_intf_id = htobe64(1); } -- cgit v1.2.3