]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: stmt_nat: set reference must point to a map
authorFlorian Westphal <fw@strlen.de>
Wed, 13 Dec 2023 16:00:37 +0000 (17:00 +0100)
committerFlorian Westphal <fw@strlen.de>
Wed, 13 Dec 2023 16:28:08 +0000 (17:28 +0100)
commit3eb0a73a9ee32897290d4097c0ec29377e25859e
treec1c98dcbcdc9ed3df5b1809d4db098476597c4c9
parentd755c2a3ae7fe8272321a1d81eafbd90052c4f14
evaluate: stmt_nat: set reference must point to a map

nat_concat_map() requires a datamap, else we crash:
set->data is dereferenced.

Also update expr_evaluate_map() so that EXPR_SET_REF is checked there
too.

Signed-off-by: Florian Westphal <fw@strlen.de>
src/evaluate.c
tests/shell/testcases/bogons/nft-f/nat_stmt_with_set_instead_of_map [new file with mode: 0644]