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 132cfaa84cdc..1278f0aa7434 100644 --- a/net/netfilter/xt_recent.c +++ b/net/netfilter/xt_recent.c | |||
@@ -177,10 +177,10 @@ recent_entry_init(struct recent_table *t, const union nf_inet_addr *addr, | |||
177 | 177 | ||
178 | static void recent_entry_update(struct recent_table *t, struct recent_entry *e) | 178 | static void recent_entry_update(struct recent_table *t, struct recent_entry *e) |
179 | { | 179 | { |
180 | e->index %= ip_pkt_list_tot; | ||
180 | e->stamps[e->index++] = jiffies; | 181 | e->stamps[e->index++] = jiffies; |
181 | if (e->index > e->nstamps) | 182 | if (e->index > e->nstamps) |
182 | e->nstamps = e->index; | 183 | e->nstamps = e->index; |
183 | e->index %= ip_pkt_list_tot; | ||
184 | list_move_tail(&e->lru_list, &t->lru_list); | 184 | list_move_tail(&e->lru_list, &t->lru_list); |
185 | } | 185 | } |
186 | 186 | ||