tools: Initialize the iptables_test invert flag properly
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Thu, 27 Oct 2011 07:24:58 +0000 (10:24 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 28 Oct 2011 19:26:13 +0000 (21:26 +0200)
The invert flag is specific to each option so it needs to be initialized
after each succesfully handled option.

tools/iptables-test.c

index fb8cefe..7057723 100644 (file)
@@ -1571,6 +1571,8 @@ int main(int argc, char *argv[])
 
                        break;
                }
+
+               invert = FALSE;
        }
 
        for (tmp_xt_rm = xt_rm; tmp_xt_rm != NULL;