Commit 91f0d735 authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller

[IPV4]: Fix skb leak in igmpv3_newpack.

parent 4caa1239
......@@ -292,6 +292,7 @@ static struct sk_buff *igmpv3_newpack(struct net_device *dev, int size)
}
}
if (rt->rt_src == 0) {
kfree_skb(skb);
ip_rt_put(rt);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment