From d23175a9aff9a34813e604302dd42e842a0ff87d Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Thu, 27 Oct 2011 10:24:58 +0300 Subject: [PATCH] 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. --- tools/iptables-test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/iptables-test.c b/tools/iptables-test.c index fb8cefe..7057723 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; -- 2.7.4