]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: catch implicit map expressions without known datatype
authorFlorian Westphal <fw@strlen.de>
Mon, 4 Dec 2023 21:51:21 +0000 (22:51 +0100)
committerFlorian Westphal <fw@strlen.de>
Tue, 5 Dec 2023 11:43:21 +0000 (12:43 +0100)
commit70054e6e1c879475779d82d19f450ac521700fe4
tree2234afe0a96f3c006c2e512ece6f9572565874e3
parent5f43ea807bb0f5b30f332c2c96f13e33c9243d22
evaluate: catch implicit map expressions without known datatype

mapping_With_invalid_datatype_crash:1:8-65: Error: Implicit map expression without known datatype
bla to tcp dport map { 80 : 1.1.1.1 . 8001, 81 : 2.2.2.2 . 9001 } bla
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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