Skip to content

Commit

Permalink
Merge branch 'nf' of git://1984.lsi.us.es/net
Browse files Browse the repository at this point in the history
  • Loading branch information
David S. Miller committed Dec 23, 2011
2 parents 0fd7bac + 0354b48 commit 6350323
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/netfilter/xt_connbytes.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ connbytes_mt(const struct sk_buff *skb, struct xt_action_param *par)
break;
}

if (sinfo->count.to)
if (sinfo->count.to >= sinfo->count.from)
return what <= sinfo->count.to && what >= sinfo->count.from;
else
return what >= sinfo->count.from;
else /* inverted */
return what < sinfo->count.to || what > sinfo->count.from;
}

static int connbytes_mt_check(const struct xt_mtchk_param *par)
Expand Down

0 comments on commit 6350323

Please sign in to comment.