commit | 9f1ba57016da5e65b83092f5ab05565091e0879d | [log] [tgz] |
---|---|---|
author | Thomas Jarosch <thomas.jarosch@intra2net.com> | Mon Oct 03 05:23:18 2011 +0000 |
committer | Stephen Hemminger <shemminger@vyatta.com> | Fri Oct 07 11:17:03 2011 -0700 |
tree | ab9ccee3b0c347d022f741018a1fd72245fc8bb6 | |
parent | 6d5ee98a7c47644308ccb167faa93e07bb702fd8 [diff] [blame] |
Fix wrong sanity check in choke_parse_opt() Detected by cppcheck. Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
diff --git a/tc/q_choke.c b/tc/q_choke.c index 6e54cb7..04a864f 100644 --- a/tc/q_choke.c +++ b/tc/q_choke.c
@@ -122,7 +122,7 @@ 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; }