Skip to content

Commit

Permalink
[IPSEC] xfrm4_beet_input(): fix an if()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and David S. Miller committed Feb 5, 2008
1 parent 9ef9dc6 commit 322c8a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/xfrm4_mode_beet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 322c8a3

Please sign in to comment.