diff options
author | Phil Sutter <phil@nwl.cc> | 2021-08-03 10:55:20 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2021-08-03 11:26:12 +0200 |
commit | 57d1422dbbc41c36ed2e9f6c67aa040c65a429a0 (patch) | |
tree | bdaddc268c457ba4a76a523717351ff2fa9e85df | |
parent | 263186372dc4ae6a54a29bea644bcf1fc8dc3fc0 (diff) |
nft: Fix for non-verbose check command
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>
-rw-r--r-- | iptables/nft.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft.c b/iptables/nft.c index f1deb82f..795dff86 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -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, |