]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_redir: correct value of inet type `.maxattrs`
authorJeremy Sowden <jeremy@azazel.net>
Tue, 7 Mar 2023 23:22:59 +0000 (23:22 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:33:42 +0000 (13:33 +0100)
commit0aa2c21dc1108e41070c19c0b0ee63034e56aef0
treef969971745750417948f09023270fcd26338202e
parenta41df31d4cca55746b9540f331c1bcdcda807bb6
netfilter: nft_redir: correct value of inet type `.maxattrs`

[ Upstream commit 7c1e764b9009b6e37f05cd584cef31a9b4f6f520 ]

`nft_redir_inet_type.maxattrs` was being set, presumably because of a
cut-and-paste error, to `NFTA_MASQ_MAX`, instead of `NFTA_REDIR_MAX`.

Fixes: d4fde61fd9d3 ("netfilter: nft_redir: add inet support")
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Reviewed-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nft_redir.c