]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
nft: Fix for non-verbose check command
authorPhil Sutter <phil@nwl.cc>
Tue, 3 Aug 2021 08:55:20 +0000 (10:55 +0200)
committerPhil Sutter <phil@nwl.cc>
Tue, 3 Aug 2021 09:26:12 +0000 (11:26 +0200)
Check command was unconditionally verbose since v1.8.5. Make it respect
--verbose option again.

Fixes: a7f1e208cdf9c ("nft: split parsing from netlink commands")
Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft.c

index f1deb82f8757617c180c49b7f65fa41102794e39..795dff860540471f91b4aa23a17688ea8670b025 100644 (file)
@@ -3126,7 +3126,7 @@ static int nft_prepare(struct nft_handle *h)
                case NFT_COMPAT_RULE_CHECK:
                        assert_chain_exists(h, cmd->table, cmd->jumpto);
                        ret = nft_rule_check(h, cmd->chain, cmd->table,
-                                            cmd->obj.rule, cmd->rulenum);
+                                            cmd->obj.rule, cmd->verbose);
                        break;
                case NFT_COMPAT_RULE_ZERO:
                        ret = nft_rule_zero_counters(h, cmd->chain, cmd->table,