]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc: fix json array closing
authorJiri Pirko <jiri@mellanox.com>
Wed, 13 Dec 2017 19:56:16 +0000 (20:56 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 14 Dec 2017 02:16:27 +0000 (18:16 -0800)
Fixes: 2704bd625583 ("tc: jsonify actions core")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
tc/m_action.c

index 13f942bfcb4909c8c4b8e0b466246e75cd463824..8185819db6baa5a2496da43f7779b33ed0ac4f4a 100644 (file)
@@ -378,7 +378,7 @@ tc_print_action(FILE *f, const struct rtattr *arg, unsigned short tot_acts)
                }
 
        }
-       close_json_object();
+       close_json_array(PRINT_JSON, NULL);
 
        return 0;
 }