summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe/ipoe.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2015-01-28 11:11:06 +0300
committerDmitry Kozlov <xeb@mail.ru>2015-01-28 11:11:06 +0300
commita5473ad84dc884f64bab3208da7f1b30c0a5015b (patch)
tree1636b1fde5be27445f79c2c9765c42513d2a10d4 /accel-pppd/ctrl/ipoe/ipoe.c
parent39c4cfc0365330034fa04528b2558bd977bb861c (diff)
downloadaccel-ppp-a5473ad84dc884f64bab3208da7f1b30c0a5015b.tar.gz
accel-ppp-a5473ad84dc884f64bab3208da7f1b30c0a5015b.zip
ipoe: fixed bug (v2)
Diffstat (limited to 'accel-pppd/ctrl/ipoe/ipoe.c')
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index cfaaec40..3296bd31 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);
}