diff --git a/tc/m_action.c b/tc/m_action.c index 445d0b69..148f1372 100644 --- a/tc/m_action.c +++ b/tc/m_action.c @@ -368,7 +368,7 @@ tc_print_action(FILE *f, const struct rtattr *arg, unsigned short tot_acts) return tc_print_action_flush(f, tb[0]); open_json_array(PRINT_JSON, "actions"); - for (i = 0; i < tot_acts; i++) { + for (i = 0; i <= tot_acts; i++) { if (tb[i]) { open_json_object(NULL); print_uint(PRINT_ANY, "order",