From 9f1ba57016da5e65b83092f5ab05565091e0879d Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Mon, 3 Oct 2011 05:23:18 +0000 Subject: [PATCH] Fix wrong sanity check in choke_parse_opt() Detected by cppcheck. Signed-off-by: Thomas Jarosch --- tc/q_choke.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tc/q_choke.c b/tc/q_choke.c index 6e54cb71..04a864f3 100644 --- a/tc/q_choke.c +++ b/tc/q_choke.c @@ -122,7 +122,7 @@ static int choke_parse_opt(struct qdisc_util *qu, int argc, char **argv, return -1; } - if (opt.qth_min > opt.qth_min) { + if (opt.qth_min >= opt.qth_max) { fprintf(stderr, "\"min\" is not smaller than \"max\"\n"); return -1; }