summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_string.c
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/libipt_string.c')
-rw-r--r--extensions/libipt_string.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/extensions/libipt_string.c b/extensions/libipt_string.c
index b9f38d7a..96801b31 100644
--- a/extensions/libipt_string.c
+++ b/extensions/libipt_string.c
@@ -60,8 +60,7 @@ parse(int c, char **argv, int invert, unsigned int *flags,
switch (c) {
case '1':
- if (check_inverse(optarg, &invert))
- optind++;
+ check_inverse(optarg, &invert, &optind, 0);
parse_string(argv[optind-1], stringinfo);
if (invert)
stringinfo->invert = 1;