[IPV6]: Fix slab corruption running ip6sic

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>
This commit is contained in:
Eric Sesterhenn
2007-05-23 00:38:17 +02:00
committed by Adrian Bunk
parent 4eedb20374
commit dffa279e10
+1 -1
View 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,