aboutsummaryrefslogtreecommitdiff
path: root/net/ipv6
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2007-05-23 00:38:17 +0200
committerAdrian Bunk <bunk@stusta.de>2007-05-23 00:38:17 +0200
commitdffa279e109e2462068b8a22f3783e3cbd930d81 (patch)
tree01c6a9d6c51cf7e91d9b7c6a70e48fdf320ba883 /net/ipv6
parent4eedb20374aadf2e4c8781a47a349b8897a43074 (diff)
[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>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/xfrm6_tunnel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/xfrm6_tunnel.c b/net/ipv6/xfrm6_tunnel.c
index 8cfc58b96fc..301c1b9841b 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,