Commit 2b2283d0 authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller

[NETFILTER]: recent match: missing refcnt initialization

Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a0e889bb
...@@ -262,6 +262,7 @@ ipt_recent_checkentry(const char *tablename, const void *ip, ...@@ -262,6 +262,7 @@ ipt_recent_checkentry(const char *tablename, const void *ip,
GFP_KERNEL); GFP_KERNEL);
if (t == NULL) if (t == NULL)
goto out; goto out;
t->refcnt = 1;
strcpy(t->name, info->name); strcpy(t->name, info->name);
INIT_LIST_HEAD(&t->lru_list); INIT_LIST_HEAD(&t->lru_list);
for (i = 0; i < ip_list_hash_size; i++) for (i = 0; i < ip_list_hash_size; i++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment