summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--iptables/nft.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/iptables/nft.c b/iptables/nft.c
index 3b5a5c1e..c803ffef 100644
--- a/iptables/nft.c
+++ b/iptables/nft.c
@@ -2757,11 +2757,7 @@ int nft_rule_list(struct nft_handle *h, const char *chain, const char *table,
print_header(format, chain_name, policy_name[policy], &ctrs,
basechain, refs);
- /* this is a base chain */
- if (nft_chain_attr_get(c, NFT_CHAIN_ATTR_HOOKNUM)) {
- __nft_rule_list(h, c, table, rulenum, format,
- print_firewall);
- }
+ __nft_rule_list(h, c, table, rulenum, format, print_firewall);
next:
c = nft_chain_list_iter_next(iter);
}