netfilter: nft_synproxy: unregister hooks on init error path
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 10 Feb 2022 09:06:42 +0000 (10:06 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 10 Feb 2022 15:33:57 +0000 (16:33 +0100)
commit2b4e5fb4d3776c391e40fb33673ba946dd96012d
treed9bb3eacb371881e91fe032c724aaf3e4c00870a
parent2e71ec1a725a794a16e3862791ed43fe5ba6a06b
netfilter: nft_synproxy: unregister hooks on init error path

Disable the IPv4 hooks if the IPv6 hooks fail to be registered.

Fixes: ad49d86e07a4 ("netfilter: nf_tables: Add synproxy support")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_synproxy.c