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_DNAT.c | |
parent | dffa8ddb43ca2d5bfe7344daea2f6e80c5adaa58 (diff) |
Fix 'iptables -p !' bug (segfault when `!' used without argument)
Diffstat (limited to 'extensions/libipt_DNAT.c')
-rw-r--r-- | extensions/libipt_DNAT.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libipt_DNAT.c b/extensions/libipt_DNAT.c index 3e466ae3..279f76e8 100644 --- a/extensions/libipt_DNAT.c +++ b/extensions/libipt_DNAT.c @@ -153,7 +153,7 @@ parse(int c, char **argv, int invert, unsigned int *flags, switch (c) { case '1': - if (check_inverse(optarg, &invert)) + if (check_inverse(optarg, &invert, NULL, 0)) exit_error(PARAMETER_PROBLEM, "Unexpected `!' after --to-destination"); |