]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: check if set exists before listing it
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 25 Sep 2015 10:53:40 +0000 (12:53 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 12 Oct 2015 18:34:21 +0000 (20:34 +0200)
commitc9737a3ace1739ca447bf904c78434f4de0c2890
treed604cea43d35b85d71fc2cc6af3501208ba05007
parent4b3d579c281aa07282531369d43e799d6276dd22
evaluate: check if set exists before listing it

After this patch, we obtain:

 # nft list set ip6 test pepe
 <cmdline>:1:1-22: Error: Could not process rule: Set 'foo' does not exist
 list set ip6 test foo
 ^^^^^^^^^^^^^^^^^^^^^

So we get things aligned with table and chain listing commands.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
src/evaluate.c