diff options
author | Marc Boucher <marc@mbsi.ca> | 2001-07-23 15:34:46 +0000 |
---|---|---|
committer | Marc Boucher <marc@mbsi.ca> | 2001-07-23 15:34:46 +0000 |
commit | 06e6394cf92b8a3a721a9492f1f2fe6d163a7bea (patch) | |
tree | 11e17b4edb51db84c32ae5c958a850652cc2a6c0 /extensions/libipt_limit.c | |
parent | 9c63cd991c11a3baae15aa4b88c5aef0403e2a01 (diff) |
Fixed string_to_number() return value check.
Diffstat (limited to 'extensions/libipt_limit.c')
-rw-r--r-- | extensions/libipt_limit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libipt_limit.c b/extensions/libipt_limit.c index 23924a7f..9aaf842a 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; |