diff --git a/net/ipv6/xfrm6_tunnel.c b/net/ipv6/xfrm6_tunnel.c index 8cfc58b96fc2553cbb946765a70c8c6932ba0cff..301c1b9841b2852944ee611419e075b3436dd6c7 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,