summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe/ipoe.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2013-10-30 15:19:21 +0400
committerDmitry Kozlov <xeb@mail.ru>2013-10-30 15:19:21 +0400
commit2351344eb1dfbe882589acc48cf7ef0c989e862f (patch)
tree98d79825578cbd60c26b9ce9861482ad4a169d3a /accel-pppd/ctrl/ipoe/ipoe.c
parentc19c04567bbe0bcd6631485795311cf83a07e5fc (diff)
downloadaccel-ppp-2351344eb1dfbe882589acc48cf7ef0c989e862f.tar.gz
accel-ppp-2351344eb1dfbe882589acc48cf7ef0c989e862f.zip
ipoe: check for assigned ipv4 address has owner before put it (fixes sigsegv)
Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
Diffstat (limited to 'accel-pppd/ctrl/ipoe/ipoe.c')
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index 5baf3d85..05ce44e2 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -939,7 +939,7 @@ 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) {
+ if (s->ipv4 && s->ipv4->owner) {
ipdb_put_ipv4(s, s->ipv4);
s->ipv4 = NULL;
}