summaryrefslogtreecommitdiff
path: root/accel-pppd/ifcfg.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2013-03-18 20:48:06 +0400
committerDmitry Kozlov <xeb@mail.ru>2013-03-18 20:48:06 +0400
commit88e90fd0812099807511152930a01035f6f3ce5a (patch)
treea5eb2f05b44692d17074a8a035a84d72f002077f /accel-pppd/ifcfg.c
parent7a1b1120184e627a4465e5131e04e98b54e04f7d (diff)
downloadaccel-ppp-88e90fd0812099807511152930a01035f6f3ce5a.tar.gz
accel-ppp-88e90fd0812099807511152930a01035f6f3ce5a.zip
ipoe: fixed username=ifname, shared=0 mode
Diffstat (limited to 'accel-pppd/ifcfg.c')
-rw-r--r--accel-pppd/ifcfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ifcfg.c b/accel-pppd/ifcfg.c
index 296b354b..127d776d 100644
--- a/accel-pppd/ifcfg.c
+++ b/accel-pppd/ifcfg.c
@@ -184,7 +184,7 @@ void __export ap_session_ifdown(struct ap_session *ses)
struct in6_ifreq ifr6;
struct ipv6db_addr_t *a;
- if (ses->ctrl->dont_ifcfg)
+ if (ses->ctrl->dont_ifcfg || ses->ifindex == -1)
return;
memset(&ifr, 0, sizeof(ifr));