diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2013-10-30 15:19:21 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-10-30 15:19:21 +0400 |
commit | 2351344eb1dfbe882589acc48cf7ef0c989e862f (patch) | |
tree | 98d79825578cbd60c26b9ce9861482ad4a169d3a /accel-pppd/ctrl/ipoe | |
parent | c19c04567bbe0bcd6631485795311cf83a07e5fc (diff) | |
download | accel-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')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index 5baf3d8..05ce44e 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; } |