diff options
Diffstat (limited to 'ip6tables.c')
-rw-r--r-- | ip6tables.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ip6tables.c b/ip6tables.c index b8449f6e..4ca4bfec 100644 --- a/ip6tables.c +++ b/ip6tables.c @@ -1714,6 +1714,9 @@ int do_command6(int argc, char *argv[], char **table, struct ip6tc_handle **hand if (matchp->completed || matchp->match->parse == NULL) continue; + if (c < matchp->match->option_offset || + c >= matchp->match->option_offset + XT_OPTION_OFFSET_SCALE) + continue; if (matchp->match->parse(c - matchp->match->option_offset, argv, invert, &matchp->match->mflags, |