summaryrefslogtreecommitdiffstats
path: root/iptables/nft.c
diff options
context:
space:
mode:
Diffstat (limited to 'iptables/nft.c')
-rw-r--r--iptables/nft.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/iptables/nft.c b/iptables/nft.c
index 66bd4d42..603ba306 100644
--- a/iptables/nft.c
+++ b/iptables/nft.c
@@ -1465,6 +1465,9 @@ int nft_rule_flush(struct nft_handle *h, const char *chain, const char *table)
struct nftnl_chain_list_iter *iter;
struct nftnl_chain *c;
+ if (nft_xtables_config_load(h, XTABLES_CONFIG_DEFAULT, 0) < 0)
+ nft_xt_builtin_init(h, table);
+
nft_fn = nft_rule_flush;
list = nftnl_chain_list_get(h);