From: Pablo Neira Ayuso Date: Wed, 4 Dec 2013 11:27:37 +0000 (+0100) Subject: nft: fix wrong function to release iterator X-Git-Tag: v1.6.0~111^2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=504119fe14bffde5800a631da89b80ed6043cecb;p=thirdparty%2Fiptables.git nft: fix wrong function to release iterator 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 --- diff --git a/iptables/nft.c b/iptables/nft.c index a015947f..6f3fdb0b 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -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; }