]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[IPV6]: Fix slab corruption running ip6sic
authorEric Sesterhenn <snakebyte@gmx.de>
Tue, 22 May 2007 22:38:17 +0000 (00:38 +0200)
committerAdrian Bunk <bunk@stusta.de>
Tue, 22 May 2007 22:38:17 +0000 (00:38 +0200)
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
net/ipv6/xfrm6_tunnel.c

index 8cfc58b96fc2553cbb946765a70c8c6932ba0cff..301c1b9841b2852944ee611419e075b3436dd6c7 100644 (file)
@@ -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,