summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-restore.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2018-11-12 12:03:57 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2018-11-12 13:49:21 +0100
commit21ec111803febfe11693790f44400e3f0a5e2020 (patch)
treea41be185274ed96b131e8bca7e73f8bcc753bb68 /iptables/xtables-restore.c
parent05947c82232e3a3d20f93a1ba18e35e7f4e23671 (diff)
nft: replace nft_chain_dump() by nft_chain_list_get()
So we can remove nft_chain_dump() and replace nftnl_chain_get_list(). Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables-restore.c')
-rw-r--r--iptables/xtables-restore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c
index d9faa4d0..f5297740 100644
--- a/iptables/xtables-restore.c
+++ b/iptables/xtables-restore.c
@@ -60,7 +60,7 @@ static struct nftnl_chain_list *get_chain_list(struct nft_handle *h)
{
struct nftnl_chain_list *chain_list;
- chain_list = nft_chain_dump(h);
+ chain_list = nft_chain_list_get(h);
if (chain_list == NULL)
xtables_error(OTHER_PROBLEM, "cannot retrieve chain list\n");