From dffa279e109e2462068b8a22f3783e3cbd930d81 Mon Sep 17 00:00:00 2001 From: Eric Sesterhenn Date: Wed, 23 May 2007 00:38:17 +0200 Subject: [PATCH] [IPV6]: Fix slab corruption running ip6sic Signed-off-by: Andrew Morton Signed-off-by: David S. Miller Signed-off-by: Adrian Bunk --- 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 8cfc58b96fc2..301c1b9841b2 100644 --- a/net/ipv6/xfrm6_tunnel.c +++ b/net/ipv6/xfrm6_tunnel.c @@ -407,7 +407,7 @@ static int xfrm6_tunnel_rcv(struct sk_buff **pskb) return 0; spi = xfrm6_tunnel_spi_lookup((xfrm_address_t *)&iph->saddr); - return xfrm6_rcv_spi(pskb, spi); + return xfrm6_rcv_spi(pskb, spi) > 0 ? : 0; } static void xfrm6_tunnel_err(struct sk_buff *skb, struct inet6_skb_parm *opt, -- 2.39.5