From 2351344eb1dfbe882589acc48cf7ef0c989e862f Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Wed, 30 Oct 2013 15:19:21 +0400 Subject: ipoe: check for assigned ipv4 address has owner before put it (fixes sigsegv) Signed-off-by: Dmitry Kozlov --- accel-pppd/ctrl/ipoe/ipoe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accel-pppd/ctrl') 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; } -- cgit v1.2.3