linux-cp: fix non-NULL terminated string 99/33699/2
authorBenoît Ganne <bganne@cisco.com>
Thu, 9 Sep 2021 09:56:58 +0000 (11:56 +0200)
committerMatthew Smith <mgsmith@netgate.com>
Thu, 9 Sep 2021 13:20:40 +0000 (13:20 +0000)
lip->lip_host_name is a non-NULL terminated vector.

Type: fix

Change-Id: Ic154ad7f57f0b507204e55f78995cc0e89132e57
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/plugins/linux-cp/lcp_interface.c

index aeff9a1..6eb9406 100644 (file)
@@ -421,7 +421,7 @@ lcp_itf_pair_del (u32 phy_sw_if_index)
 
   lip = lcp_itf_pair_get (lipi);
 
-  LCP_ITF_PAIR_INFO ("pair delete: {%U, %U, %s}", format_vnet_sw_if_index_name,
+  LCP_ITF_PAIR_INFO ("pair delete: {%U, %U, %v}", format_vnet_sw_if_index_name,
                     vnet_get_main (), lip->lip_phy_sw_if_index,
                     format_vnet_sw_if_index_name, vnet_get_main (),
                     lip->lip_host_sw_if_index, lip->lip_host_name);