From: Pablo Neira Ayuso Date: Thu, 1 Nov 2012 15:26:46 +0000 (+0100) Subject: nft: fix missing rule listing in custom chains with -L X-Git-Tag: v1.6.0~111^2~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06fc595fa99ab0036d87b259b0d20e4916522969;p=thirdparty%2Fiptables.git nft: fix missing rule listing in custom chains with -L Reported-by: Tomasz Bursztyka Signed-off-by: Pablo Neira Ayuso --- 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); }