diff options
Diffstat (limited to 'accel-pppd/ifcfg.c')
-rw-r--r-- | accel-pppd/ifcfg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/ifcfg.c b/accel-pppd/ifcfg.c index 03968fb5..8fdfde7d 100644 --- a/accel-pppd/ifcfg.c +++ b/accel-pppd/ifcfg.c @@ -193,8 +193,9 @@ void __export ap_session_ifdown(struct ap_session *ses) if (ses->ifindex == -1) return; + strcpy(ifr.ifr_name, ses->ifname); + if (!ses->ctrl->dont_ifcfg) { - strcpy(ifr.ifr_name, ses->ifname); ifr.ifr_flags = 0; net->sock_ioctl(SIOCSIFFLAGS, &ifr); } |