summaryrefslogtreecommitdiffstats
path: root/extensions/libip6t_limit.c
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/libip6t_limit.c')
-rw-r--r--extensions/libip6t_limit.c2
1 files changed, 1 insertions, 1 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;