提交 2b2283d0 编写于 作者: P Patrick McHardy 提交者: David S. Miller

[NETFILTER]: recent match: missing refcnt initialization

Signed-off-by: NPatrick McHardy <kaber@trash.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a0e889bb
......@@ -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++)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册