]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
ACCOUNT: remove extra intrapositional negation check
authorJan Engelhardt <jengelh@medozas.de>
Tue, 3 Nov 2009 19:31:49 +0000 (20:31 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Tue, 3 Nov 2009 19:31:49 +0000 (20:31 +0100)
extensions/ACCOUNT/libxt_ACCOUNT.c

index 2f151031260ee2a7f9ebac1556447f5bf618930d..3252f11fd1db0f159cc368e90d055089d1a9ee78 100644 (file)
@@ -57,10 +57,6 @@ static int account_tg_parse(int c, char **argv, int invert, unsigned int *flags,
                        xtables_error(PARAMETER_PROBLEM, "Can't specify --%s twice",
                                account_tg_opts[0].name);
 
-               if (xtables_check_inverse(optarg, &invert, NULL, 0))
-                       xtables_error(PARAMETER_PROBLEM, "Unexpected `!' after --%s",
-                               account_tg_opts[0].name);
-
                xtables_ipparse_any(optarg, &addrs, &mask, &naddrs);
                if (naddrs > 1)
                        xtables_error(PARAMETER_PROBLEM, "multiple IP addresses not allowed");
@@ -77,11 +73,6 @@ static int account_tg_parse(int c, char **argv, int invert, unsigned int *flags,
                                "Can't specify --%s twice",
                                account_tg_opts[1].name);
 
-               if (xtables_check_inverse(optarg, &invert, NULL, 0))
-                       xtables_error(PARAMETER_PROBLEM,
-                               "Unexpected `!' after --%s",
-                               account_tg_opts[1].name);
-
                if (strlen(optarg) > ACCOUNT_TABLE_NAME_LEN - 1)
                        xtables_error(PARAMETER_PROBLEM,
                                "Maximum table name length %u for --%s",