diff options
-rw-r--r-- | extensions/libip6t_limit.c | 2 | ||||
-rw-r--r-- | extensions/libipt_limit.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/extensions/libip6t_limit.c b/extensions/libip6t_limit.c index e794675..cd267ef 100644 --- a/extensions/libip6t_limit.c +++ b/extensions/libip6t_limit.c @@ -115,7 +115,7 @@ parse(int c, char **argv, int invert, unsigned int *flags, exit_error(PARAMETER_PROBLEM, "Unexpected `!' after --limit-burst"); - if (string_to_number(optarg, 0, 10000, &num) <= 0) + if (string_to_number(optarg, 0, 10000, &num) == -1) exit_error(PARAMETER_PROBLEM, "bad --limit-burst `%s'", optarg); r->burst = num; diff --git a/extensions/libipt_limit.c b/extensions/libipt_limit.c index 23924a7..9aaf842 100644 --- a/extensions/libipt_limit.c +++ b/extensions/libipt_limit.c @@ -115,7 +115,7 @@ parse(int c, char **argv, int invert, unsigned int *flags, exit_error(PARAMETER_PROBLEM, "Unexpected `!' after --limit-burst"); - if (string_to_number(optarg, 0, 10000, &num) <= 0) + if (string_to_number(optarg, 0, 10000, &num) == -1) exit_error(PARAMETER_PROBLEM, "bad --limit-burst `%s'", optarg); r->burst = num; |