git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
netfilter: xt_recent: fix false match
[pandora-kernel.git]
/
net
/
netfilter
/
xt_recent.c
diff --git
a/net/netfilter/xt_recent.c
b/net/netfilter/xt_recent.c
index
1278f0a
..
7073dbb
100644
(file)
--- 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 (++hits >= info->hit_count) {
+ if (
info->hit_count &&
++hits >= info->hit_count) {
ret = !ret;
break;
}