contrib/fwd: reset invert flag after running xt parse handler
[project/luci.git] / 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;
                }
        }