]> 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:28:04 +0000 (13:28 +0100)
commita2739b40e5114bc96ac2620aaa56c7cd396ef4a0
treeeb1f343f37a121be4a8f62d48b46641d1516d34c
parent92104be634b4c5f0fb2aac42f9f656748a4a1afb
netfilter: nft_redir: correct value of inet type `.maxattrs`

[ Upstream commit 493924519b1fe3faab13ee621a43b0d0939abab1 ]

`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