]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6c33f5efa567a921831c5efdadfc9aa95ab33826
treed9bb3eacb371881e91fe032c724aaf3e4c00870a
parent5ccdab2a73d89fdbceb68e2ae5e7479c6c677451
netfilter: nft_synproxy: unregister hooks on init error path

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

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