summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-11-06 12:35:57 +0300
committerDmitry Kozlov <xeb@mail.ru>2014-11-06 12:35:57 +0300
commitb276238f8721849c364cf718f854c7b07a706254 (patch)
tree7072b043b36de7c82c6f2be745b6901c86c7ba38 /accel-pppd/ctrl
parent22e13bac6488cfbb939fc1f54133f966a0cc1e62 (diff)
downloadaccel-ppp-b276238f8721849c364cf718f854c7b07a706254.tar.gz
accel-ppp-b276238f8721849c364cf718f854c7b07a706254.zip
release IP addresses before fire EV_SESSION_FINISHED (fixes segfault when using IPoE)
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index a4809b0..cdb8fb0 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -1095,11 +1095,6 @@ static void ipoe_session_finished(struct ap_session *s)
if (ses->relay_addr && ses->serv->dhcpv4_relay)
dhcpv4_relay_send_release(ses->serv->dhcpv4_relay, ses->hwaddr, ses->xid, ses->yiaddr, ses->client_id, ses->relay_agent, ses->serv->ifname, conf_agent_remote_id);
- if (s->ipv4 && s->ipv4->owner) {
- ipdb_put_ipv4(s, s->ipv4);
- s->ipv4 = NULL;
- }
-
if (ses->ifcfg)
ipoe_ifcfg_del(ses, 1);