Message ID | CAABrY5oR+UvxWwrYFajEzUT8ccGDHAYW0bBUOfNcUn6SYA+fjw@mail.gmail.com |
---|---|
State | Rejected, archived |
Delegated to: | stephen hemminger |
Headers | show |
--- iproute2-2.6.33/tc/tc_util.c 2010-02-25 04:56:50.000000000 +0100 +++ /home/pschoen/tc_util.c 2013-06-13 18:31:00.347135625 +0200 @@ -50,9 +50,14 @@ maj = strtoul(str, &p, 16); if (p == str) return -1; - maj <<= 16; - if (*p != ':' && *p!=0) - return -1; + if (*p != ':') + { + if (*p!=0) + return -1; + else if (TC_H_MIN(maj) != 0) + return -1; + } else + maj <<= 16; ok: *h = maj; return 0;