]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: fix check for unknown in cmd_op_to_name
author谢致邦 (XIE Zhibang) <Yeking@Red54.com>
Wed, 7 Feb 2024 15:10:20 +0000 (15:10 +0000)
committerPhil Sutter <phil@nwl.cc>
Wed, 7 Feb 2024 17:05:53 +0000 (18:05 +0100)
commit9f76bb63c0c706ea5c0d55931ee690ca5dccaf16
tree7a51156cc94a18c53b15a850636aec0415757548
parent3a734d60813193974a4a0e8ed0af3349f8857ec9
evaluate: fix check for unknown in cmd_op_to_name

Example:
nft --debug=all destroy table ip missingtable

Before:
Evaluate unknown

After:
Evaluate destroy

Fixes: e1dfd5cc4c46 ("src: add support to command "destroy"")
Signed-off-by: 谢致邦 (XIE Zhibang) <Yeking@Red54.com>
Signed-off-by: Phil Sutter <phil@nwl.cc>
src/evaluate.c