From: Eric Sesterhenn Date: Tue, 22 May 2007 22:38:17 +0000 (+0200) Subject: [IPV6]: Fix slab corruption running ip6sic X-Git-Tag: v2.6.16.52-rc1~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dffa279e109e2462068b8a22f3783e3cbd930d81;p=people%2Fms%2Flinux.git [IPV6]: Fix slab corruption running ip6sic Signed-off-by: Andrew Morton Signed-off-by: David S. Miller Signed-off-by: Adrian Bunk --- 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,