summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extensions/libipt_realm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libipt_realm.c b/extensions/libipt_realm.c
index 20c3014..ec9d3e3 100644
--- a/extensions/libipt_realm.c
+++ b/extensions/libipt_realm.c
@@ -49,7 +49,7 @@ parse(int c, char **argv, int invert, unsigned int *flags,
switch (c) {
char *end;
case '1':
- check_inverse(argv[optind], &invert, &optind, 0);
+ check_inverse(argv[optind-1], &invert, &optind, 0);
optarg = argv[optind-1];
realminfo->id = strtoul(optarg, &end, 0);
if (*end == '/') {