devices: fix crash on invalid interface 84/36084/3
authorGabriel Ganne <gabriel.ganne@gmail.com>
Thu, 5 May 2022 08:16:56 +0000 (10:16 +0200)
committerDamjan Marion <dmarion@me.com>
Sun, 8 May 2022 14:00:11 +0000 (14:00 +0000)
commit01f6c7353084d1180387ae64b936e96028e17fbd
treea340da4cb6bb60b5fc5a9f01d6b93f9f325432fa
parentda052b62bd2158944342735ae4cfdc65de268d6b
devices: fix crash on invalid interface

Type: fix

A simple "create host-interface name xxx" is enough to trigger the bug:
The interface is not found, and we goto error with apif=NULL

Signed-off-by: Gabriel Ganne <gabriel.ganne@gmail.com>
Change-Id: I2f894176d39b3d15efab054dc7340e7a0600a2e8
src/vnet/devices/af_packet/af_packet.c