]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[IPSEC] xfrm4_beet_input(): fix an if()
authorAdrian Bunk <bunk@kernel.org>
Tue, 5 Feb 2008 10:51:39 +0000 (02:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Feb 2008 10:51:39 +0000 (02:51 -0800)
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>
net/ipv4/xfrm4_mode_beet.c

index e093a7b59e18af38cf918aed2754159cf68db8fd..b47030ba162bc97df715d11fc779f59df1db16e5 100644 (file)
@@ -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);
        }