aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Lo <loj@cisco.com>2016-07-18 12:20:09 -0400
committerChris Luke <chris_luke@comcast.com>2016-07-18 17:03:31 +0000
commit2221cd8dd18e66bcdb9bb9a4114ba0c3dddcd00c (patch)
treec4d157ca81bed1e83300340a18ab0857200c092c
parentbb4333802523b9569848beff94e7ff4ab23483b6 (diff)
Fix "show hardware" CLI display for bonded interface may corrupt heap
Change-Id: Ie379844047b6402884653d3fd682010a1d09d14a Signed-off-by: John Lo <loj@cisco.com>
-rw-r--r--vnet/vnet/interface_format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnet/vnet/interface_format.c b/vnet/vnet/interface_format.c
index 840e72b6..319113f5 100644
--- a/vnet/vnet/interface_format.c
+++ b/vnet/vnet/interface_format.c
@@ -87,7 +87,7 @@ u8 * format_vnet_hw_interface (u8 * s, va_list * args)
{
int hw_idx;
s = format (s, "Slave-Idx:");
- clib_bitmap_foreach (hw_idx, hi->bond_info, format(s, " %d", hw_idx));
+ clib_bitmap_foreach (hw_idx, hi->bond_info, s = format(s, " %d", hw_idx));
}
else if (dev_class->format_device_name)
s = format (s, "%U", dev_class->format_device_name, hi->dev_instance);