summaryrefslogtreecommitdiff
path: root/net/netfilter/nft_synproxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/netfilter/nft_synproxy.c')
-rw-r--r--net/netfilter/nft_synproxy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/netfilter/nft_synproxy.c b/net/netfilter/nft_synproxy.c
index e2c1fc608841..15abb0e49603 100644
--- a/net/netfilter/nft_synproxy.c
+++ b/net/netfilter/nft_synproxy.c
@@ -191,8 +191,10 @@ static int nft_synproxy_do_init(const struct nft_ctx *ctx,
if (err)
goto nf_ct_failure;
err = nf_synproxy_ipv6_init(snet, ctx->net);
- if (err)
+ if (err) {
+ nf_synproxy_ipv4_fini(snet, ctx->net);
goto nf_ct_failure;
+ }
break;
}