From 2221cd8dd18e66bcdb9bb9a4114ba0c3dddcd00c Mon Sep 17 00:00:00 2001 From: John Lo Date: Mon, 18 Jul 2016 12:20:09 -0400 Subject: Fix "show hardware" CLI display for bonded interface may corrupt heap Change-Id: Ie379844047b6402884653d3fd682010a1d09d14a Signed-off-by: John Lo --- vnet/vnet/interface_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit 1.2.3-korg