diff options
-rw-r--r-- | iptables/xtables-eb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/iptables/xtables-eb.c b/iptables/xtables-eb.c index bfa66d7d..72559075 100644 --- a/iptables/xtables-eb.c +++ b/iptables/xtables-eb.c @@ -530,8 +530,7 @@ static int parse_change_counters_rule(int argc, char **argv, int *rule_nr, int * char *buffer; int ret = 0; - if (optind + 1 >= argc || (argv[optind][0] == '-' && (argv[optind][1] < '0' || argv[optind][1] > '9')) || - (argv[optind + 1][0] == '-' && (argv[optind + 1][1] < '0' && argv[optind + 1][1] > '9'))) + if (optind + 1 >= argc || argv[optind][0] == '-' || argv[optind + 1][0] == '-') xtables_error(PARAMETER_PROBLEM, "The command -C needs at least 2 arguments"); if (optind + 2 < argc && (argv[optind + 2][0] != '-' || (argv[optind + 2][1] >= '0' && argv[optind + 2][1] <= '9'))) { |