| To: | "David S. Miller" <davem@xxxxxxxxxx> |
|---|---|
| Subject: | [PATCH]: Fix skb leak in igmpv3_newpack |
| From: | Patrick McHardy <kaber@xxxxxxxxx> |
| Date: | Fri, 28 May 2004 12:54:26 +0200 |
| Cc: | netdev@xxxxxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5 |
This patch fixes an skb-leak in igmpv3_newpack. skb isn't freed when rt->rt_src == 0. Patch applies to 2.4 and 2.6. Regards Patrick # This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/05/28 12:30:41+02:00 kaber@xxxxxxxxx
# [IPV4]: Fix skb leak in igmpv3_newpack
#
# net/ipv4/igmp.c
# 2004/05/28 12:30:34+02:00 kaber@xxxxxxxxx +1 -0
# [IPV4]: Fix skb leak in igmpv3_newpack
#
diff -Nru a/net/ipv4/igmp.c b/net/ipv4/igmp.c
--- a/net/ipv4/igmp.c 2004-05-28 12:35:28 +02:00
+++ b/net/ipv4/igmp.c 2004-05-28 12:35:28 +02:00
@@ -292,6 +292,7 @@
}
}
if (rt->rt_src == 0) {
+ kfree_skb(skb);
ip_rt_put(rt);
return 0;
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH]: Fix off-by-one in max protocol-type check, Patrick McHardy |
|---|---|
| Next by Date: | Re: [PATCH]: Fix off-by-one in max protocol-type check, Patrick McHardy |
| Previous by Thread: | [PATCH]: Fix off-by-one in max protocol-type check, Patrick McHardy |
| Next by Thread: | Re: [PATCH]: Fix skb leak in igmpv3_newpack, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |