mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-04-18 10:23:08 +02:00
netfilter: nft_redir: correct value of inet type .maxattrs
[ Upstream commit493924519b] `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:63ce3940f3("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
de03d13017
commit
a219cabada
@@ -232,7 +232,7 @@ static struct nft_expr_type nft_redir_inet_type __read_mostly = {
|
||||
.name = "redir",
|
||||
.ops = &nft_redir_inet_ops,
|
||||
.policy = nft_redir_policy,
|
||||
.maxattr = NFTA_MASQ_MAX,
|
||||
.maxattr = NFTA_REDIR_MAX,
|
||||
.owner = THIS_MODULE,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user