From: Harald Welte Date: Sun, 13 Feb 2005 18:17:11 +0000 (+0000) Subject: Allow "--realm ! foo" and "! --realm foo" (Closes: #297) X-Git-Tag: v1.3.1~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=69558bf5d1acbc9112b7568d9db6aec2efa0fd7a;p=thirdparty%2Fiptables.git Allow "--realm ! foo" and "! --realm foo" (Closes: #297) --- 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 == '/') {