From de989066480f70b09052a9e649a1d5d1dd21566c Mon Sep 17 00:00:00 2001 From: Matthew Smith Date: Thu, 8 Sep 2022 21:03:10 +0000 Subject: teib: fix segv during failed deletion of entry Type: fix If an attempt is made to delete a teib entry and the entry does not exist, a message is logged. The format string contained an extra "%U", which results in a segv. Change-Id: I9b1d6ba63601982ba6ac8607cf710e34c311702a Signed-off-by: Matthew Smith --- src/vnet/teib/teib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/vnet/teib/teib.c b/src/vnet/teib/teib.c index 2edb18c01e6..44bbc7cfd89 100644 --- a/src/vnet/teib/teib.c +++ b/src/vnet/teib/teib.c @@ -279,8 +279,7 @@ teib_entry_del (u32 sw_if_index, const ip_address_t * peer) } else { - TEIB_INFO ("no such entry: %U, %U, %U", - format_vnet_sw_if_index_name, + TEIB_INFO ("no such entry: %U, %U", format_vnet_sw_if_index_name, vnet_get_main (), sw_if_index, format_ip_address, peer); return (VNET_API_ERROR_NO_SUCH_ENTRY); } -- cgit 1.2.3-korg