stn: fix non-NULL terminated string overflow
Type: fix Change-Id: I9d7e6dd099cf9f4b7f6bb06d9e8a17fac7d7e772 Signed-off-by: Benoît Ganne <bganne@cisco.com>
This commit is contained in:

committed by
Florin Coras

parent
11f7965350
commit
a1d20405b7
@ -49,7 +49,7 @@ format_stn_rule (u8 * s, va_list * args)
|
||||
s = format (s, "%Uiface: %U (%d)\n", format_white_space, indent,
|
||||
format_vnet_sw_if_index_name, vnet_get_main(), r->sw_if_index,
|
||||
r->sw_if_index);
|
||||
s = format (s, "%Unext_node: %s (%d)", format_white_space, indent,
|
||||
s = format (s, "%Unext_node: %v (%d)", format_white_space, indent,
|
||||
next_node->name, next_node->index);
|
||||
return s;
|
||||
}
|
||||
|
Reference in New Issue
Block a user