summaryrefslogtreecommitdiffstats
path: root/extensions/libip6t_length.c
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/libip6t_length.c')
-rw-r--r--extensions/libip6t_length.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/extensions/libip6t_length.c b/extensions/libip6t_length.c
index 71075ca0..fe65115f 100644
--- a/extensions/libip6t_length.c
+++ b/extensions/libip6t_length.c
@@ -87,8 +87,7 @@ parse(int c, char **argv, int invert, unsigned int *flags,
exit_error(PARAMETER_PROBLEM,
"length: `--length' may only be "
"specified once");
- if (check_inverse(optarg, &invert))
- optind++;
+ check_inverse(optarg, &invert, &optind, 0);
parse_lengths(argv[optind-1], info);
if (invert)
info->invert = 1;