mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-15 05:11:32 +00:00
[IPSEC] xfrm4_beet_input(): fix an if()
A bug every C programmer makes at some point in time... Signed-off-by: Adrian Bunk <bunk@kernel.org> Acked-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9ef9dc69d4
commit
322c8a3c36
@ -102,7 +102,7 @@ static int xfrm4_beet_input(struct xfrm_state *x, struct sk_buff *skb)
|
||||
|
||||
XFRM_MODE_SKB_CB(skb)->protocol = ph->nexthdr;
|
||||
|
||||
if (!pskb_may_pull(skb, phlen));
|
||||
if (!pskb_may_pull(skb, phlen))
|
||||
goto out;
|
||||
__skb_pull(skb, phlen);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user