projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b4a4cb
)
iptables: Set builtin flag before inserting new entry
author
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 12 Nov 2010 01:39:07 +0000
(
02:39
+0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 12 Nov 2010 01:39:07 +0000
(
02:39
+0100)
src/iptables.c
patch
|
blob
|
history
diff --git
a/src/iptables.c
b/src/iptables.c
index
c757a71
..
80c7cb1
100644
(file)
--- a/
src/iptables.c
+++ b/
src/iptables.c
@@
-573,8
+573,8
@@
iptables_add_rule(struct connman_iptables *table,
if (head->builtin < 0)
builtin = -1;
else if (chain_head == chain_tail->prev) {
- head->builtin = -1;
builtin = head->builtin;
+ head->builtin = -1;
}
return iptables_add_entry(table, new_entry, chain_tail->prev, builtin);