From 06fc595fa99ab0036d87b259b0d20e4916522969 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 1 Nov 2012 16:26:46 +0100 Subject: nft: fix missing rule listing in custom chains with -L Reported-by: Tomasz Bursztyka Signed-off-by: Pablo Neira Ayuso --- iptables/nft.c | 6 +----- 1 file changed, 1 insertion(+), 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); } -- cgit v1.2.3