]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
fix psd option parsing (Phil Oester)
authorPhil Oester <kernel@linuxace.com>
Sat, 18 Sep 2004 17:45:41 +0000 (17:45 +0000)
committerPatrick McHardy <kaber@trash.net>
Sat, 18 Sep 2004 17:45:41 +0000 (17:45 +0000)
extensions/libipt_psd.c

index 8a6198e0d8217560156a96d1211d7bf6d46f3df5..068430d9e56b10ec2b46aedea90c54e31d842379 100644 (file)
@@ -84,11 +84,6 @@ parse(int c, char **argv, int invert, unsigned int *flags,
        struct ipt_psd_info *psdinfo = (struct ipt_psd_info *)(*match)->data;
        unsigned int num;
        
-       if (!optarg)
-               exit_error(PARAMETER_PROBLEM, "missing optarg");
-
-       /* string_to_number needs a leading space */
-
        switch (c) {
        /* PSD-weight-threshold */
        case '1':