api: fix crash in pcap capture api 85/41985/2
authorHadi Rayan Al-Sandid <[email protected]>
Tue, 10 Dec 2024 10:05:26 +0000 (11:05 +0100)
committerBenoit Ganne <[email protected]>
Wed, 6 Aug 2025 07:30:47 +0000 (07:30 +0000)
commit8adb8a7ce296426c9081ff56b90f5eb972f2dfe3
tree111a0b699d78ec4fdab5c80010e3c28c1d6ba26f
parent84d52285afd1b478d616026a3d63a714abb29f13
api: fix crash in pcap capture api

pcap api cleanup can cause crash if invalid sw_if_index
is provided. This fix is similar to https://gerrit.fd.io/r/c/vpp/+/41936
, which only fixed the invalid filename use-case.

Type: fix

Change-Id: I34ce178a4cb7fc92b4e4bb399a3fabd4efc85159
Signed-off-by: Hadi Rayan Al-Sandid <[email protected]>
src/vnet/interface_api.c
test/test_pcap.py