summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_MASQUERADE.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2002-03-14 11:35:58 +0000
committerHarald Welte <laforge@gnumonks.org>2002-03-14 11:35:58 +0000
commitb77f1dafb9f35752bb9685323bcacb32a0e6ddc5 (patch)
tree32821b41042796995881aabc74f6821e7603b288 /extensions/libipt_MASQUERADE.c
parentdffa8ddb43ca2d5bfe7344daea2f6e80c5adaa58 (diff)
Fix 'iptables -p !' bug (segfault when `!' used without argument)
Diffstat (limited to 'extensions/libipt_MASQUERADE.c')
-rw-r--r--extensions/libipt_MASQUERADE.c2
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");