cdp: fix non-null terminated vector use 68/22768/2
authorBenoît Ganne <bganne@cisco.com>
Wed, 16 Oct 2019 12:54:24 +0000 (14:54 +0200)
committerDamjan Marion <dmarion@me.com>
Wed, 16 Oct 2019 18:38:02 +0000 (18:38 +0000)
Type: fix

Change-Id: I31e5d9d9e93339eb789aed20996f326b085c22a9
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/plugins/cdp/cdp_input.c

index a6da0f6..e52361b 100644 (file)
@@ -444,7 +444,7 @@ format_cdp_neighbors (u8 * s, va_list * va)
     hw = vnet_get_sup_hw_interface (vnm, n->sw_if_index);
 
     if (n->disabled == 0)
-      s = format (s, "%=25s %=25s %=25s %=10.1f\n",
+      s = format (s, "%=25v %=25s %=25s %=10.1f\n",
                   hw->name, n->device_name, n->port_id,
                   n->last_heard);
   }));