From d1eb4d58729736773d1c5cc106451e2851427850 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 4 May 2018 11:41:10 +0200 Subject: iptables-compat: chains are purge out already from table flush Remove dead code that uses the ancient non-batch netlink API. Chains are already purged out from table flush. Signed-off-by: Pablo Neira Ayuso --- iptables/xtables-restore.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'iptables/xtables-restore.c') diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c index 3de496f8..a33a6593 100644 --- a/iptables/xtables-restore.c +++ b/iptables/xtables-restore.c @@ -190,7 +190,6 @@ struct nft_xt_restore_cb restore_cb = { .chain_list = get_chain_list, .commit = nft_commit, .abort = nft_abort, - .chains_purge = nft_table_purge_chains, .table_flush = nft_table_flush, .chain_del = chain_delete, .do_command = do_commandx, @@ -245,10 +244,6 @@ void xtables_restore_parse(struct nft_handle *h, } in_table = 0; - /* Purge out unused chains in this table */ - if (!p->testing && cb->chains_purge) - cb->chains_purge(h, curtable, chain_list); - } else if ((buffer[0] == '*') && (!in_table)) { /* New table */ char *table; -- cgit v1.2.3