Commit dffa279e authored by Eric Sesterhenn's avatar Eric Sesterhenn Committed by Adrian Bunk

[IPV6]: Fix slab corruption running ip6sic

Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
parent 4eedb203
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment