From c2426646937e233aa8596ed281d148eeb3a6846e Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Fri, 12 Nov 2010 02:42:06 +0100 Subject: [PATCH] iptables-test: Set builtin flag before inserting new entry --- tools/iptables-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/iptables-test.c b/tools/iptables-test.c index 5634eae..e8e9228 100644 --- a/tools/iptables-test.c +++ b/tools/iptables-test.c @@ -592,8 +592,8 @@ connman_iptables_add_rule(struct connman_iptables *table, char *chain_name, if (head->builtin < 0) builtin = -1; else if (chain_head == chain_tail->prev) { - head->builtin = -1; builtin = head->builtin; + head->builtin = -1; } return connman_add_entry(table, new_entry, chain_tail->prev, builtin); -- 2.7.4