]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
Import patch thomas.1
authornet[shemminger]!shemminger <net[shemminger]!shemminger>
Thu, 10 Mar 2005 19:00:42 +0000 (19:00 +0000)
committernet[shemminger]!shemminger <net[shemminger]!shemminger>
Thu, 10 Mar 2005 19:00:42 +0000 (19:00 +0000)
(Logical change 1.147)

tc/q_netem.c

index 60369dc6b934cc84c970729f111d0e5e096484de..f696cc3231f4edd6810b8ff2c5c3c6340c047669 100644 (file)
@@ -243,7 +243,7 @@ static int netem_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
        memcpy(&qopt, RTA_DATA(opt), sizeof(qopt));
 
        if (len > 0) {
-               struct rtattr *tb[TCA_NETEM_MAX];
+               struct rtattr *tb[TCA_NETEM_MAX+1];
                parse_rtattr(tb, TCA_NETEM_MAX, RTA_DATA(opt) + sizeof(qopt),
                             len);