netfilter: ipt_CLUSTERIP: put config struct if we can't increment ct refcount
authorFlorian Westphal <fw@strlen.de>
Fri, 16 Feb 2018 11:49:32 +0000 (12:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:52:03 +0000 (07:52 +0200)
commit596816fabe42d41d81e862b056761bab50a93ae2
tree226bf7aab2dbc5973b716dd319d2b83f31b2718e
parentff8c6751ecf35b4a57a73b8b5c32fd8914d69b6d
netfilter: ipt_CLUSTERIP: put config struct if we can't increment ct refcount

[ Upstream commit 8ae56822812ddedc26a152ab1916eb30120b4748 ]

This needs to put() the entry to avoid a resource leak in error path.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/netfilter/ipt_CLUSTERIP.c