Dinghao Liu 1921060a11 netfilter: nf_nat: Fix memleak in nf_nat_init
commit 869f4fdaf4ca7bb6e0d05caf6fa1108dddc346a7 upstream.

When register_pernet_subsys() fails, nf_nat_bysource
should be freed just like when nf_ct_extend_register()
fails.

Fixes: 1cd472bf036ca ("netfilter: nf_nat: add nat hook register functions to nf_nat")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-19 18:22:38 +01:00
..
2019-06-22 08:15:13 +02:00
2020-07-22 09:31:58 +02:00
2019-12-05 09:21:30 +01:00
2020-10-14 10:31:26 +02:00
2020-10-29 09:54:55 +01:00
2018-07-24 14:10:42 -07:00
2020-12-30 11:26:06 +01:00
2020-12-30 11:25:44 +01:00
2018-07-24 14:10:43 -07:00