Commit 9f1ba570 authored by Thomas Jarosch's avatar Thomas Jarosch Committed by Stephen Hemminger

Fix wrong sanity check in choke_parse_opt()

Detected by cppcheck.
Signed-off-by: default avatarThomas Jarosch <thomas.jarosch@intra2net.com>
parent 6d5ee98a
...@@ -122,7 +122,7 @@ static int choke_parse_opt(struct qdisc_util *qu, int argc, char **argv, ...@@ -122,7 +122,7 @@ static int choke_parse_opt(struct qdisc_util *qu, int argc, char **argv,
return -1; 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"); fprintf(stderr, "\"min\" is not smaller than \"max\"\n");
return -1; return -1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment