projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d62a11b
)
tools: Fix rule insertion in a builtin chain into iptables-test
author
Tomasz Bursztyka
<tomasz.bursztyka@linux.intel.com>
Mon, 6 Feb 2012 13:24:21 +0000
(15:24 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Mon, 13 Feb 2012 11:57:34 +0000
(12:57 +0100)
tools/iptables-test.c
patch
|
blob
|
history
diff --git
a/tools/iptables-test.c
b/tools/iptables-test.c
index
b87339a
..
feefc53
100644
(file)
--- a/
tools/iptables-test.c
+++ b/
tools/iptables-test.c
@@
-689,7
+689,10
@@
static int connman_iptables_insert_rule(struct connman_iptables *table,
if (new_entry == NULL)
return -EINVAL;
- ret = connman_add_entry(table, new_entry, chain_head->next, builtin);
+ if (builtin == -1)
+ chain_head = chain_head->next;
+
+ ret = connman_add_entry(table, new_entry, chain_head, builtin);
if (ret < 0)
g_free(new_entry);