From f77e1aca9aa8851b469f79c2db80ddb6f49253b2 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 16 Jul 2013 22:43:06 +0200 Subject: src: use nft_*_list_add_tail Adapt it to the semantic fix that has been applied to libnftable nft_*_list_add now inserts nodes, instead of appending them. Signed-off-by: Pablo Neira Ayuso --- iptables/nft.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'iptables/nft.c') diff --git a/iptables/nft.c b/iptables/nft.c index b9820f12..e6702ff4 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -1065,7 +1065,7 @@ static int nft_chain_list_cb(const struct nlmsghdr *nlh, void *data) goto out; } - nft_chain_list_add(c, list); + nft_chain_list_add_tail(c, list); return MNL_CB_OK; out: @@ -1174,7 +1174,7 @@ static int nft_rule_list_cb(const struct nlmsghdr *nlh, void *data) goto out; } - nft_rule_list_add(r, list); + nft_rule_list_add_tail(r, list); return MNL_CB_OK; out: @@ -1537,7 +1537,7 @@ static int nft_table_list_cb(const struct nlmsghdr *nlh, void *data) goto out; } - nft_table_list_add(t, list); + nft_table_list_add_tail(t, list); return MNL_CB_OK; out: -- cgit v1.2.3