commit | fe75e84a8fe17449ea16b73cfcfc9e7d06a49130 | [log] [tgz] |
---|---|---|
author | Pablo Neira Ayuso <pablo@netfilter.org> | Wed Jan 12 12:29:05 2022 +0100 |
committer | Pablo Neira Ayuso <pablo@netfilter.org> | Wed Jan 12 12:30:29 2022 +0100 |
tree | 9d192d58d68ffb53e3027481e7d5304d351c2b9a | |
parent | cf46eacbc156a82d6643eb10afe8969abad5a35f [diff] |
netfilter: nf_tables: set last expression in register tracking area nft_rule_for_each_expr() sets on last to nft_rule_last(), however, this is coming after track.last field is set on. Use nft_expr_last() to set track.last accordingly. Fixes: 12e4ecfa244b ("netfilter: nf_tables: add register tracking infrastructure") Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>