Skip to content

Commit

Permalink
[NETFILTER]: recent match: missing refcnt initialization
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jun 18, 2006
1 parent a0e889b commit 2b2283d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/ipv4/netfilter/ipt_recent.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down

0 comments on commit 2b2283d

Please sign in to comment.