fib: fix non-NULL terminated vectors in cli output
Type: fix
Change-Id: Idbb3f29b13a5c84a8585c4299e51fdfc35f7e1ad
Signed-off-by: Benoît Ganne <bganne@cisco.com>
(cherry picked from commit 84382ae45c
)
This commit is contained in:

committed by
Andrew Yourtchenko

parent
caeb90e9ce
commit
9a91d62793
@ -2824,7 +2824,7 @@ show_fib_path_command (vlib_main_t * vm,
|
||||
FIB_PATH_FORMAT_FLAGS_NONE);
|
||||
s = format(s, "\n children:");
|
||||
s = fib_node_children_format(path->fp_node.fn_children, s);
|
||||
vlib_cli_output (vm, "%s", s);
|
||||
vlib_cli_output (vm, "%v", s);
|
||||
vec_free(s);
|
||||
}
|
||||
else
|
||||
|
@ -1460,7 +1460,7 @@ show_fib_path_list_command (vlib_main_t * vm,
|
||||
u8 *s = fib_path_list_format(pli, NULL);
|
||||
s = format(s, "children:");
|
||||
s = fib_node_children_format(path_list->fpl_node.fn_children, s);
|
||||
vlib_cli_output (vm, "%s", s);
|
||||
vlib_cli_output (vm, "%v", s);
|
||||
vec_free(s);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user