commit | 06e6394cf92b8a3a721a9492f1f2fe6d163a7bea | [log] [tgz] |
---|---|---|
author | Marc Boucher <marc@mbsi.ca> | Mon Jul 23 15:34:46 2001 +0000 |
committer | Marc Boucher <marc@mbsi.ca> | Mon Jul 23 15:34:46 2001 +0000 |
tree | 11e17b4edb51db84c32ae5c958a850652cc2a6c0 | |
parent | 9c63cd991c11a3baae15aa4b88c5aef0403e2a01 [diff] [blame] |
Fixed string_to_number() return value check.
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 @@ 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;