vcl: fix error state switch for VCL_STATE_LISTEN_NO_MQ sessions 38/39338/2
authorwanghanlin <wanghanlin@corp.netease.com>
Mon, 7 Aug 2023 09:23:53 +0000 (17:23 +0800)
committerFlorin Coras <florin.coras@gmail.com>
Mon, 7 Aug 2023 16:58:07 +0000 (16:58 +0000)
commit696db20e332fcbecaaef9c5505cc2e132bfaa9e2
tree1d26dbae5882588312da8c58585d220b5df82bf7
parentb22da9c7d101dca833a5c4183e7cf13943f16715
vcl: fix error state switch for VCL_STATE_LISTEN_NO_MQ sessions

When a VCL_STATE_LISTEN_NO_MQ session receives an ACCEPTED message,
but then receives either a RESET or DISCONNECTED message from VPP
before the session is unlistened, the listen session state is
switched to DISCONNECT.
The subsequent CLEANUP message handler attempts to send a reset
reply message to VPP, but since the vpp_evt_q for the listen
session is null, this leads to a crash.

Type: fix
Change-Id: Id7e88dcb16df3eda912b3f763730ec8d8973473a
Signed-off-by: wanghanlin <wanghanlin@corp.netease.com>
src/vcl/vppcom.c