Skip to content

Commit

Permalink
netfilter: nft_redir: correct value of inet type .maxattrs
Browse files Browse the repository at this point in the history
`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]>
  • Loading branch information
a3a3el authored and ummakynes committed Mar 8, 2023
1 parent 1f617b6 commit 4939245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/nft_redir.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,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,
};

Expand Down

0 comments on commit 4939245

Please sign in to comment.