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:
parent
6d5ee98a7c
commit
9f1ba57016
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue