diff options
author | David S. Miller <davem@davemloft.net> | 2010-03-25 11:48:58 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-25 11:48:58 -0700 |
commit | 80bb3a00fa314e3c5dbbd23a38bfaf94f2402b99 (patch) | |
tree | ef2e5b4dde5ef7674b5cc713db9dc925d1f98f15 /net/netfilter/xt_recent.c | |
parent | 9a127aad4d60968fba96622008ea0d243688f2b0 (diff) | |
parent | 8f5992291457c8e6de2f5fe39849de6756be1a96 (diff) | |
download | op-kernel-dev-80bb3a00fa314e3c5dbbd23a38bfaf94f2402b99.zip op-kernel-dev-80bb3a00fa314e3c5dbbd23a38bfaf94f2402b99.tar.gz |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-2.6
Diffstat (limited to 'net/netfilter/xt_recent.c')
-rw-r--r-- | net/netfilter/xt_recent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/xt_recent.c b/net/netfilter/xt_recent.c index 7073dbb..971d172 100644 --- a/net/netfilter/xt_recent.c +++ b/net/netfilter/xt_recent.c @@ -267,7 +267,7 @@ recent_mt(const struct sk_buff *skb, const struct xt_match_param *par) for (i = 0; i < e->nstamps; i++) { if (info->seconds && time_after(time, e->stamps[i])) continue; - if (info->hit_count && ++hits >= info->hit_count) { + if (!info->hit_count || ++hits >= info->hit_count) { ret = !ret; break; } |