summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2005-02-13 18:17:11 +0000
committerHarald Welte <laforge@gnumonks.org>2005-02-13 18:17:11 +0000
commit69558bf5d1acbc9112b7568d9db6aec2efa0fd7a (patch)
treea4902f29a607103dd8eeea0ce4fe58740833e948 /extensions
parent8430fb96e331987c4e3ccd9195ddd33b4099ab51 (diff)
Allow "--realm ! foo" and "! --realm foo" (Closes: #297)
Diffstat (limited to 'extensions')
-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 20c30147..ec9d3e34 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 == '/') {