Skip to content

Commit 4939245

Browse files
a3a3elummakynes
authored andcommitted
netfilter: nft_redir: correct value of inet type .maxattrs
`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: 63ce394 ("netfilter: nft_redir: add inet support") Signed-off-by: Jeremy Sowden <[email protected]> Reviewed-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 1f617b6 commit 4939245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/nft_redir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ static struct nft_expr_type nft_redir_inet_type __read_mostly = {
236236
.name = "redir",
237237
.ops = &nft_redir_inet_ops,
238238
.policy = nft_redir_policy,
239-
.maxattr = NFTA_MASQ_MAX,
239+
.maxattr = NFTA_REDIR_MAX,
240240
.owner = THIS_MODULE,
241241
};
242242

0 commit comments

Comments
 (0)