diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-02-05 11:51:39 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-05 11:51:39 +0100 |
commit | 322c8a3c364ef4d9ead17e86890c19816b0e262f (patch) | |
tree | 90bdc2eaed88131ff2ad091ced8e0b21c9a52ef6 | |
parent | Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm (diff) | |
download | linux-322c8a3c364ef4d9ead17e86890c19816b0e262f.tar.xz linux-322c8a3c364ef4d9ead17e86890c19816b0e262f.zip |
[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>
-rw-r--r-- | net/ipv4/xfrm4_mode_beet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/xfrm4_mode_beet.c b/net/ipv4/xfrm4_mode_beet.c index e093a7b59e18..b47030ba162b 100644 --- a/net/ipv4/xfrm4_mode_beet.c +++ b/net/ipv4/xfrm4_mode_beet.c @@ -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); } |