From 01608a86ae513b512ec966845e86a8490dc502f8 Mon Sep 17 00:00:00 2001 From: laforge Date: Thu, 14 Mar 2002 11:35:58 +0000 Subject: Fix 'iptables -p !' bug (segfault when `!' used without argument) --- extensions/libipt_helper.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'extensions/libipt_helper.c') diff --git a/extensions/libipt_helper.c b/extensions/libipt_helper.c index ddb42ee..92ade93 100644 --- a/extensions/libipt_helper.c +++ b/extensions/libipt_helper.c @@ -44,8 +44,7 @@ parse(int c, char **argv, int invert, unsigned int *flags, switch (c) { case '1': - if (check_inverse(optarg, &invert)) - optind++; + check_inverse(optarg, &invert, &invert, 0); strncpy(info->name, optarg, 29); if (invert) info->invert = 1; -- cgit v1.2.3