]> git.hungrycats.org Git - linux/commitdiff
ipv6: Fix return of xfrm6_tunnel_rcv()
authorDavid S. Miller <davem@davemloft.net>
Tue, 24 May 2011 05:11:51 +0000 (01:11 -0400)
committerWilly Tarreau <w@1wt.eu>
Fri, 18 Sep 2015 11:52:20 +0000 (13:52 +0200)
commit 6ac3f6649223d916bbdf1e823926f8f3b34b5d99 upstream.

Like ipv4, just return xfrm6_rcv_spi()'s return value directly.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
net/ipv6/xfrm6_tunnel.c

index 48bb1e301d497e35876735baeb15ce2868d41540..5980e6e7020872f896452394831a157cc59d9e86 100644 (file)
@@ -258,7 +258,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, IPPROTO_IPV6, spi) > 0 ? : 0;
+       return xfrm6_rcv_spi(skb, IPPROTO_IPV6, spi);
 }
 
 static int xfrm6_tunnel_err(struct sk_buff *skb, struct inet6_skb_parm *opt,