]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
nft: fix wrong function to release iterator
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 4 Dec 2013 11:27:37 +0000 (12:27 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 30 Dec 2013 22:50:55 +0000 (23:50 +0100)
nft.c: In function ‘nft_xtables_config_load’:
nft.c:2522:3: warning: passing argument 1 of ‘nft_table_list_iter_destroy’ from incompatible pointer type [enabled by default]
In file included from nft.c:41:0:
/usr/include/libnftables/table.h:64:6: note: expected ‘struct nft_table_list_iter *’ but argument is of type ‘struct nft_chain_list_iter *’

Introduced in (12eb85b nft: fix memory leaks in
nft_xtables_config_load) but that was my fault indeed since Ana sent
a v2 patch that I have overlook.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/nft.c

index a015947fd4b5840e8622c417f497ed4db6e3fe0b..6f3fdb0b885d889dbeb31bb9af75dd78d6727413 100644 (file)
@@ -2519,7 +2519,7 @@ err:
        if (titer != NULL)
                nft_table_list_iter_destroy(titer);
        if (citer != NULL)
-               nft_table_list_iter_destroy(citer);
+               nft_chain_list_iter_destroy(citer);
 
        return -1;
 }