From: Adrian Bunk Date: Tue, 5 Feb 2008 10:51:39 +0000 (-0800) Subject: [IPSEC] xfrm4_beet_input(): fix an if() X-Git-Tag: v2.6.25-rc1~787^2~20 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=322c8a3c364ef4d9ead17e86890c19816b0e262f;p=linux-2.6-omap-h63xx.git [IPSEC] xfrm4_beet_input(): fix an if() A bug every C programmer makes at some point in time... Signed-off-by: Adrian Bunk Acked-by: Herbert Xu Signed-off-by: David S. Miller --- diff --git a/net/ipv4/xfrm4_mode_beet.c b/net/ipv4/xfrm4_mode_beet.c index e093a7b59e1..b47030ba162 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); }