summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2011-10-27 10:24:58 +0300
committerSamuel Ortiz <sameo@linux.intel.com>2011-10-28 21:26:13 +0200
commitd23175a9aff9a34813e604302dd42e842a0ff87d (patch)
tree09bda8dce6f979c4fcfee43f6cfcc3bc325dab25 /tools
parent553d7582db6124205b91c3c65f84dcaebbe30884 (diff)
downloadconnman-d23175a9aff9a34813e604302dd42e842a0ff87d.tar.gz
connman-d23175a9aff9a34813e604302dd42e842a0ff87d.tar.bz2
connman-d23175a9aff9a34813e604302dd42e842a0ff87d.zip
tools: Initialize the iptables_test invert flag properly
The invert flag is specific to each option so it needs to be initialized after each succesfully handled option.
Diffstat (limited to 'tools')
-rw-r--r--tools/iptables-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/iptables-test.c b/tools/iptables-test.c
index fb8cefee..70577234 100644
--- a/tools/iptables-test.c
+++ b/tools/iptables-test.c
@@ -1571,6 +1571,8 @@ int main(int argc, char *argv[])
break;
}
+
+ invert = FALSE;
}
for (tmp_xt_rm = xt_rm; tmp_xt_rm != NULL;