From b77f1dafb9f35752bb9685323bcacb32a0e6ddc5 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 14 Mar 2002 11:35:58 +0000 Subject: Fix 'iptables -p !' bug (segfault when `!' used without argument) --- extensions/libipt_mark.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'extensions/libipt_mark.c') diff --git a/extensions/libipt_mark.c b/extensions/libipt_mark.c index 001635a6..1c86fd7a 100644 --- a/extensions/libipt_mark.c +++ b/extensions/libipt_mark.c @@ -45,8 +45,7 @@ parse(int c, char **argv, int invert, unsigned int *flags, switch (c) { char *end; case '1': - if (check_inverse(optarg, &invert)) - optind++; + check_inverse(optarg, &invert, &optind, 0); markinfo->mark = strtoul(optarg, &end, 0); if (*end == '/') { markinfo->mask = strtoul(end+1, &end, 0); -- cgit v1.2.3