From 6d781b053eb8f43d5febabe543564b8c52620086 Mon Sep 17 00:00:00 2001 From: Eric Sesterhenn Date: Wed, 9 May 2007 01:20:59 -0700 Subject: [PATCH] [PATCH] IPV6: Fix slab corruption running ip6sic Signed-off-by: Andrew Morton Signed-off-by: David S. Miller Signed-off-by: Chris Wright --- net/ipv6/xfrm6_tunnel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv6/xfrm6_tunnel.c b/net/ipv6/xfrm6_tunnel.c index 93c42232aa3..dff33ccea23 100644 --- a/net/ipv6/xfrm6_tunnel.c +++ b/net/ipv6/xfrm6_tunnel.c @@ -261,7 +261,7 @@ static int xfrm6_tunnel_rcv(struct sk_buff *skb) __be32 spi; spi = xfrm6_tunnel_spi_lookup((xfrm_address_t *)&iph->saddr); - return xfrm6_rcv_spi(skb, spi); + return xfrm6_rcv_spi(skb, spi) > 0 ? : 0; } static int xfrm6_tunnel_err(struct sk_buff *skb, struct inet6_skb_parm *opt, -- 2.11.4.GIT