interface: fix check in set_interface_name api 05/39305/5
authorStanislav Zaikin <[email protected]>
Tue, 1 Aug 2023 12:28:37 +0000 (14:28 +0200)
committerBeno�t Ganne <[email protected]>
Fri, 3 May 2024 17:08:55 +0000 (17:08 +0000)
commit51e6c0d5febd21e362b34cc54d80419e395a742e
treefd5722333b34edefd64f69af93e65525aa6487fd
parent616201abe273afb3712791f5b2b8799b5b01a58d
interface: fix check in set_interface_name api

set_interface_name may crash if wrong sw_if_index is passed e.g. ~0

Type: fix

Signed-off-by: Stanislav Zaikin <[email protected]>
Change-Id: Ic7e400c914fb33c2f9eac4f2985bb5b163a18d57
src/vnet/interface_api.c