diff options
-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 1bb0d6c8438c..43e83a44224d 100644 --- a/net/netfilter/xt_recent.c +++ b/net/netfilter/xt_recent.c | |||
@@ -260,7 +260,7 @@ recent_mt(const struct sk_buff *skb, const struct xt_match_param *par) | |||
260 | for (i = 0; i < e->nstamps; i++) { | 260 | for (i = 0; i < e->nstamps; i++) { |
261 | if (info->seconds && time_after(time, e->stamps[i])) | 261 | if (info->seconds && time_after(time, e->stamps[i])) |
262 | continue; | 262 | continue; |
263 | if (++hits >= info->hit_count) { | 263 | if (info->hit_count && ++hits >= info->hit_count) { |
264 | ret = !ret; | 264 | ret = !ret; |
265 | break; | 265 | break; |
266 | } | 266 | } |