mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-13 16:50:05 +00:00
[NETFILTER]: recent match: missing refcnt initialization
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a0e889bb1b
commit
2b2283d030
@ -262,6 +262,7 @@ ipt_recent_checkentry(const char *tablename, const void *ip,
|
||||
GFP_KERNEL);
|
||||
if (t == NULL)
|
||||
goto out;
|
||||
t->refcnt = 1;
|
||||
strcpy(t->name, info->name);
|
||||
INIT_LIST_HEAD(&t->lru_list);
|
||||
for (i = 0; i < ip_list_hash_size; i++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user