]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: verify named map is actually a map
authorPatrick McHardy <kaber@trash.net>
Mon, 12 Jan 2015 11:06:17 +0000 (11:06 +0000)
committerPatrick McHardy <kaber@trash.net>
Mon, 12 Jan 2015 13:21:16 +0000 (13:21 +0000)
commit39d344742c1a4f9b94af0f659e63e0e4e1ffae4e
tree7aa7266a861960860f73477da2db18647ac54ba3
parent33ec59fb4a2d824c919d8f4bf881f49e5a952f54
evaluate: verify named map is actually a map

# nft add set filter test { type ipv4_addr; }
# nft filter input ip daddr vmap @test

Before:

<cmdline>:0:0-32: Error: Could not process rule: Invalid argument
filter input ip daddr vmap @test
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

After:

<cmdline>:1:28-32: Error: Expression is not a map
filter input ip daddr vmap @test
                           ^^^^^

Signed-off-by: Patrick McHardy <kaber@trash.net>
src/evaluate.c