From 39c4cfc0365330034fa04528b2558bd977bb861c Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Wed, 28 Jan 2015 11:09:23 +0300 Subject: Revert "ipoe: fixed bug" This reverts commit c362f0d1dc4b3feef318233007999db206dc3b1a. --- accel-pppd/ctrl/ipoe/ipoe.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'accel-pppd') diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index d5937d55..cfaaec40 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -914,11 +914,10 @@ static void __ipoe_session_activate(struct ipoe_session *ses) if (ses->serv->opt_mode == MODE_L2 && ses->serv->opt_ipv6 && sock6_fd != -1) { ses->ses.ipv6 = ipdb_get_ipv6(&ses->ses); - if (!ses->ses.ipv6) { + if (!ses->ses.ipv6) log_ppp_warn("ipoe: no free IPv6 address\n"); - if (!ses->ses.ipv6->peer_intf_id) - ses->ses.ipv6->peer_intf_id = htobe64(1); - } + if (!ses->ses.ipv6->peer_intf_id) + ses->ses.ipv6->peer_intf_id = htobe64(1); } __sync_sub_and_fetch(&stat_starting, 1); -- cgit v1.2.3