summaryrefslogtreecommitdiff
path: root/accel-pppd/session.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-05-18 03:02:29 +0000
committerDmitry Kozlov <xeb@mail.ru>2014-05-18 03:02:29 +0000
commitd3a17940de818452970a80cb7dba7a793f8ee1e2 (patch)
tree0800f5975b6e5bd6fca886f3922e74f407aa3e9e /accel-pppd/session.c
parentad39c45f1fe5ba4f84c87de6166c55c2c176840c (diff)
downloadaccel-ppp-d3a17940de818452970a80cb7dba7a793f8ee1e2.tar.gz
accel-ppp-d3a17940de818452970a80cb7dba7a793f8ee1e2.zip
2-way interface renaming
First try to rename interface immediately and if it fails then do second try later just before bring interface up. In case single-session=replace first try to rename interface may fail because first session may be active
Diffstat (limited to 'accel-pppd/session.c')
-rw-r--r--accel-pppd/session.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/accel-pppd/session.c b/accel-pppd/session.c
index 5d12635f..267b960f 100644
--- a/accel-pppd/session.c
+++ b/accel-pppd/session.c
@@ -176,6 +176,11 @@ void __export ap_session_finished(struct ap_session *ses)
_free(ses->ipv6_pool_name);
ses->ipv6_pool_name = NULL;
}
+
+ if (ses->ifname_rename) {
+ _free(ses->ifname_rename);
+ ses->ifname_rename = NULL;
+ }
#ifdef USE_BACKUP
if (ses->backup)