]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: tproxy: move range error checks after arg evaluation
authorFlorian Westphal <fw@strlen.de>
Thu, 11 Jan 2024 17:14:15 +0000 (18:14 +0100)
committerFlorian Westphal <fw@strlen.de>
Thu, 11 Jan 2024 20:34:05 +0000 (21:34 +0100)
commit1d03ab5267bdbc7c0bcb041efaad42a462fdeb5f
treeb6cd8fadf7eeca035f17255f8c819cf17f67d7fa
parent666018e71ebb5df376b1b013c1ca859eaed66f1a
evaluate: tproxy: move range error checks after arg evaluation

Testing for range before evaluation will still crash us later during
netlink linearization, prefixes turn into ranges, symbolic expression
might hide a range/prefix.

So move this after the argument has been evaluated.

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