Commit fb02af61 authored by Jeremy Sowden's avatar Jeremy Sowden Committed by sanglipeng
Browse files

netfilter: nft_redir: correct value of inet type `.maxattrs`

stable inclusion
from stable-v5.10.176
commit 0fac20b1806b211fc38fa8778208bc1cad7a5df1
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I87BGI

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=0fac20b1806b211fc38fa8778208bc1cad7a5df1



--------------------------------

[ Upstream commit 49392451 ]

`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: 63ce3940 ("netfilter: nft_redir: add inet support")
Signed-off-by: default avatarJeremy Sowden <jeremy@azazel.net>
Reviewed-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent dacd6120
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment