Skip to contentSkip to conversation

nft: Fix for non-verbose check command

PATCH New Phil Sutter 1 participant 1 message Aug 3, 2021 netfilter

lore
Share & tools
lore

Phil Sutter

author reviewer
#0 lore raw

PATCH 1/1 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")
---
 iptables/nft.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
iptables/nft.c +1 -1
index 4e80e5b7e7972..8880d12f31c7a 100644
@@ -3122,7 +3122,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,
Signature · 1 line
2.32.0