Skip to contentSkip to conversation

: recent match: missing refcnt initialization

PATCH In review Patrick McHardy 1 participant 1 message Jun 8, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/3 : recent match: missing refcnt initialization

[NETFILTER]: recent match: missing refcnt initialization

---
commit 10263005af5814396b8263c1c2a4367d49548e13
tree a73003fe82e7b4546359d86f684b90b78a6aa504
parent 6812aa38ac35d6e819058d2273a6a7de091a2604
author Patrick McHardy <[email protected]> Thu, 01 Jun 2006 16:49:58 +0200 committer Patrick McHardy <[email protected]> Thu, 01 Jun 2006 16:49:58 +0200

 net/ipv4/netfilter/ipt_recent.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
net/ipv4/netfilter/ipt_recent.c +1 -0
index 9b09e48..61a2139 100644
@@ -262,6 +262,7 @@ ipt_recent_checkentry(const char *tablen
 		    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++)