vcl: fix error state switch for vcl_handle_mq_event 44/39344/4
authorwanghanlin <wanghanlin@corp.netease.com>
Tue, 8 Aug 2023 02:40:04 +0000 (10:40 +0800)
committerFlorin Coras <florin.coras@gmail.com>
Tue, 15 Aug 2023 18:06:10 +0000 (18:06 +0000)
commit4747b346d0b34133acb3e41e59c42a7633ff41b9
treecbb55693a377d211ec9d16a8cd05ffaab86c5a3a
parent61ab0947219c93590f6ec1198da93fe339ba70ca
vcl: fix error state switch for vcl_handle_mq_event

When a listen session receives an ACCEPTED message, but then
receives either a RESET or DISCONNECTED message from VPP before the
session is accepted, the listen session state is switched to
VPP_CLOSING or DISCONNECT.
The subsequent CLEANUP message handler attempts to send a
disconneted or 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: Ic51f78f631fe8d15bf8c56b795f4a900c3e2f724
Signed-off-by: wanghanlin <wanghanlin@corp.netease.com>
src/vcl/vppcom.c