summaryrefslogtreecommitdiffstats
path: root/tc/f_route.c
diff options
context:
space:
mode:
Diffstat (limited to 'tc/f_route.c')
-rw-r--r--tc/f_route.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tc/f_route.c b/tc/f_route.c
index f3f9bcc4..e9de218b 100644
--- a/tc/f_route.c
+++ b/tc/f_route.c
@@ -143,9 +143,7 @@ static int route_print_opt(struct filter_util *qu, FILE *f, struct rtattr *opt,
if (opt == NULL)
return 0;
- memset(tb, 0, sizeof(tb));
- if (opt)
- parse_rtattr(tb, TCA_ROUTE4_MAX, RTA_DATA(opt), RTA_PAYLOAD(opt));
+ parse_rtattr_nested(tb, TCA_ROUTE4_MAX, opt);
if (handle)
fprintf(f, "fh 0x%08x ", handle);