From 69558bf5d1acbc9112b7568d9db6aec2efa0fd7a Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 13 Feb 2005 18:17:11 +0000 Subject: Allow "--realm ! foo" and "! --realm foo" (Closes: #297) --- extensions/libipt_realm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 == '/') { -- cgit v1.2.3