Skip to content

Commit

Permalink
[NETFILTER]: netfilter: xt_u32 bug correction
Browse files Browse the repository at this point in the history
An extraneous ";" makes xt_u32 match useless

Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: Patrick McHardy <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Eric Dumazet authored and davem330 committed Aug 14, 2007
1 parent 28e8351 commit 3501953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/xt_u32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 3501953

Please sign in to comment.