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 dc9fab11a64828546948530f8bbe666fb73de435..6f569fd27ab9333f12c934cb1548dd73f59c6b82 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;
                }
        }