diff options
author | Matthew Smith <mgsmith@netgate.com> | 2022-09-08 21:03:10 +0000 |
---|---|---|
committer | Neale Ranns <neale@graphiant.com> | 2022-09-19 01:26:18 +0000 |
commit | de989066480f70b09052a9e649a1d5d1dd21566c (patch) | |
tree | 23a0d85cb15b584ac284155bc234565a14089630 /src/vnet/teib | |
parent | 114b154659fc647881d50d5bf1ae10c97090254e (diff) |
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>
Diffstat (limited to 'src/vnet/teib')
-rw-r--r-- | src/vnet/teib/teib.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); } |