[PATCH] IPV6: Fix slab corruption running ip6sic
authorEric Sesterhenn <snakebyte@gmx.de>
Wed, 9 May 2007 08:20:59 +0000 (01:20 -0700)
committerChris Wright <chrisw@sous-sol.org>
Wed, 23 May 2007 21:32:46 +0000 (14:32 -0700)
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
net/ipv6/xfrm6_tunnel.c

index 93c42232aa396f7c1ddafe5310674b2b7c72c542..dff33ccea2388499070efcb81849b217f76bd703 100644 (file)
@@ -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,