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_MASQUERADE.c | |
parent | dffa8ddb43ca2d5bfe7344daea2f6e80c5adaa58 (diff) |
Fix 'iptables -p !' bug (segfault when `!' used without argument)
Diffstat (limited to 'extensions/libipt_MASQUERADE.c')
-rw-r--r-- | extensions/libipt_MASQUERADE.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libipt_MASQUERADE.c b/extensions/libipt_MASQUERADE.c index 0eecba5c..a45285a9 100644 --- a/extensions/libipt_MASQUERADE.c +++ b/extensions/libipt_MASQUERADE.c @@ -94,7 +94,7 @@ parse(int c, char **argv, int invert, unsigned int *flags, exit_error(PARAMETER_PROBLEM, "Need TCP or UDP with port specification"); - if (check_inverse(optarg, &invert)) + if (check_inverse(optarg, &invert, NULL, 0)) exit_error(PARAMETER_PROBLEM, "Unexpected `!' after --to-ports"); |