]> err.no Git - linux-2.6/commitdiff
[NETFILTER]: netfilter: xt_u32 bug correction
authorEric Dumazet <dada1@cosmosbay.com>
Tue, 14 Aug 2007 20:13:28 +0000 (13:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Aug 2007 20:13:28 +0000 (13:13 -0700)
An extraneous ";" makes xt_u32 match useless

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/xt_u32.c

index 74f9b14c012f45e819938e6bb5c2873163d0cd13..bec427915b302fa2d9731de6045a9a6e8bd14ee4 100644 (file)
@@ -36,7 +36,7 @@ static bool u32_match_it(const struct xt_u32 *data,
                at  = 0;
                pos = ct->location[0].number;
 
-               if (skb->len < 4 || pos > skb->len - 4);
+               if (skb->len < 4 || pos > skb->len - 4)
                        return false;
 
                ret   = skb_copy_bits(skb, pos, &n, sizeof(n));