teib: fix segv during failed deletion of entry 94/37094/2
authorMatthew Smith <mgsmith@netgate.com>
Thu, 8 Sep 2022 21:03:10 +0000 (21:03 +0000)
committerNeale Ranns <neale@graphiant.com>
Mon, 19 Sep 2022 01:26:18 +0000 (01:26 +0000)
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>
src/vnet/teib/teib.c

index 2edb18c..44bbc7c 100644 (file)
@@ -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);
     }