In article <[EMAIL PROTECTED]> (at Tue, 16 Aug 2005 21:04:10 -0700 (PDT)),
"David S. Miller" <[EMAIL PROTECTED]> says:
> From: Patrick McHardy <[EMAIL PROTECTED]>
> Date: Wed, 17 Aug 2005 05:52:06 +0200
>
> > David S. Miller wrote:
> > > Applied to both net-2.6 and net-2.6.14
> >
> > BTW, the IPv6 skb leak fix is only in your net-2.6.14 tree
> > so far, I think it should go in net-2.6 as well.
>
> Agreed, added to net-2.6
Agreed to fix it, but there's no need to change so much.
Signed-off-by: Hideaki YOSHIFUJI <[EMAIL PROTECTED]>
diff --git a/net/ipv6/ip6_input.c b/net/ipv6/ip6_input.c
--- a/net/ipv6/ip6_input.c
+++ b/net/ipv6/ip6_input.c
@@ -199,7 +199,8 @@ resubmit:
if (xfrm6_policy_check(NULL, XFRM_POLICY_IN, skb)) {
IP6_INC_STATS_BH(IPSTATS_MIB_INUNKNOWNPROTOS);
icmpv6_param_prob(skb, ICMPV6_UNK_NEXTHDR,
nhoff);
- }
+ } else
+ kfree_skb(skb);
} else {
IP6_INC_STATS_BH(IPSTATS_MIB_INDELIVERS);
kfree_skb(skb);
--
YOSHIFUJI Hideaki @ USAGI Project <[EMAIL PROTECTED]>
GPG-FP : 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html