Skip to content
Permalink
Browse files

[IPV6]: Fix slab corruption running ip6sic

From: Eric Sesterhenn <snakebyte@gmx.de>

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
SesterhennEric authored and davem330 committed Apr 29, 2007
1 parent 65bb723 commit d0772b70faaf8e9f2013b6c4273d94d5eac8047a
Showing with 1 addition and 1 deletion.
  1. +1 −1 net/ipv6/xfrm6_tunnel.c
@@ -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,

0 comments on commit d0772b7

Please sign in to comment.
You can’t perform that action at this time.