summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--iptables/nft.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/iptables/nft.c b/iptables/nft.c
index 0249cbbe..fde1b2a3 100644
--- a/iptables/nft.c
+++ b/iptables/nft.c
@@ -2046,7 +2046,8 @@ int nft_chain_user_rename(struct nft_handle *h,const char *chain,
static struct nftnl_table_list *nftnl_table_list_get(struct nft_handle *h)
{
- nft_build_cache(h);
+ if (!h->cache->tables)
+ fetch_table_cache(h);
return h->cache->tables;
}