From: Patrick McHardy Date: Fri, 9 Jun 2006 19:18:17 +0000 (-0700) Subject: [NETFILTER]: recent match: missing refcnt initialization X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2b2283d0302d520f08ded41c2ca17886dfbb865a;p=openwrt%2Fstaging%2Fblogic.git [NETFILTER]: recent match: missing refcnt initialization Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- diff --git a/net/ipv4/netfilter/ipt_recent.c b/net/ipv4/netfilter/ipt_recent.c index 9b09e481957d..61a2139f9cfd 100644 --- a/net/ipv4/netfilter/ipt_recent.c +++ b/net/ipv4/netfilter/ipt_recent.c @@ -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++)