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 <mgsmith@netgate.com>
This commit is contained in:

committed by
Neale Ranns

parent
114b154659
commit
de98906648
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user