]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
Fix wrong sanity check in choke_parse_opt()
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 3 Oct 2011 05:23:18 +0000 (05:23 +0000)
committerStephen Hemminger <shemminger@vyatta.com>
Fri, 7 Oct 2011 18:17:03 +0000 (11:17 -0700)
Detected by cppcheck.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
tc/q_choke.c

index 6e54cb71a498397a68e2d37c18c3cd84db377592..04a864f3bcfc1140c2f75d38a4020132138905a8 100644 (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;
        }