diff options
author | Harald Welte <laforge@gnumonks.org> | 2002-03-14 11:35:58 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2002-03-14 11:35:58 +0000 |
commit | b77f1dafb9f35752bb9685323bcacb32a0e6ddc5 (patch) | |
tree | 32821b41042796995881aabc74f6821e7603b288 /extensions/libipt_helper.c | |
parent | dffa8ddb43ca2d5bfe7344daea2f6e80c5adaa58 (diff) |
Fix 'iptables -p !' bug (segfault when `!' used without argument)
Diffstat (limited to 'extensions/libipt_helper.c')
-rw-r--r-- | extensions/libipt_helper.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/extensions/libipt_helper.c b/extensions/libipt_helper.c index ddb42eea..92ade933 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; |