contrib/fwd: reset invert flag after running xt parse handler
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 16 Dec 2009 22:58:19 +0000 (22:58 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 16 Dec 2009 22:58:19 +0000 (22:58 +0000)
contrib/fwd/src/fwd_xtables.c

index dc9fab1..6f569fd 100644 (file)
@@ -229,6 +229,7 @@ void __fwd_xt_parse_match(
                        }
 
                        m->parse(optc, opts, inv, &m->mflags, r->entry, &m->m);
+                       inv = 0;
                }
        }
 
@@ -303,6 +304,7 @@ void __fwd_xt_parse_target(
                        }
 
                        t->parse(optc, opts, inv, &t->tflags, r->entry, &t->t);
+                       inv = 0;
                }
        }