summaryrefslogtreecommitdiffstats
path: root/tc/q_tbf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tc/q_tbf.c')
-rw-r--r--tc/q_tbf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tc/q_tbf.c b/tc/q_tbf.c
index d251435e..6ed5e0bd 100644
--- a/tc/q_tbf.c
+++ b/tc/q_tbf.c
@@ -209,8 +209,7 @@ static int tbf_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
if (opt == NULL)
return 0;
- memset(tb, 0, sizeof(tb));
- parse_rtattr(tb, TCA_TBF_PTAB, RTA_DATA(opt), RTA_PAYLOAD(opt));
+ parse_rtattr_nested(tb, TCA_TBF_PTAB, opt);
if (tb[TCA_TBF_PARMS] == NULL)
return -1;