aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv4/netfilter/ipt_recent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/netfilter/ipt_recent.c b/net/ipv4/netfilter/ipt_recent.c
index 9b09e481957d..61a2139f9cfd 100644
--- a/net/ipv4/netfilter/ipt_recent.c
+++ b/net/ipv4/netfilter/ipt_recent.c
@@ -262,6 +262,7 @@ ipt_recent_checkentry(const char *tablename, const void *ip,
262 GFP_KERNEL); 262 GFP_KERNEL);
263 if (t == NULL) 263 if (t == NULL)
264 goto out; 264 goto out;
265 t->refcnt = 1;
265 strcpy(t->name, info->name); 266 strcpy(t->name, info->name);
266 INIT_LIST_HEAD(&t->lru_list); 267 INIT_LIST_HEAD(&t->lru_list);
267 for (i = 0; i < ip_list_hash_size; i++) 268 for (i = 0; i < ip_list_hash_size; i++)