Fix wrong sanity check in choke_parse_opt()

Detected by cppcheck.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
This commit is contained in:
Thomas Jarosch 2011-10-03 05:23:18 +00:00 committed by Stephen Hemminger
parent 6d5ee98a7c
commit 9f1ba57016
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}