diff options
author | Florin Coras <fcoras@cisco.com> | 2021-03-10 00:21:02 -0800 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2021-03-10 19:10:28 +0000 |
commit | 8694fbc8827ab5063df0b36aa05646a035458f2e (patch) | |
tree | 3c61b7881a22adbe4ddf5441e924a9830a900098 /src/vnet | |
parent | f91098e49cd9ea65cfecabf3832cbb88316c4429 (diff) |
session: check if fifo exists in cl bound notification
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I316575a4b199916920cad6be8f9b49025d6ccc2d
Diffstat (limited to 'src/vnet')
-rw-r--r-- | src/vnet/session/session_api.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/session/session_api.c b/src/vnet/session/session_api.c index 8d82a7e4458..3ca3c2a2692 100644 --- a/src/vnet/session/session_api.c +++ b/src/vnet/session/session_api.c @@ -372,7 +372,8 @@ mq_send_session_bound_cb (u32 app_wrk_index, u32 api_context, eq_seg = session_main_get_evt_q_segment (); m.vpp_evt_q = fifo_segment_msg_q_offset (eq_seg, ls->thread_index); - if (session_transport_service_type (ls) == TRANSPORT_SERVICE_CL) + if (session_transport_service_type (ls) == TRANSPORT_SERVICE_CL && + ls->rx_fifo) { m.rx_fifo = fifo_segment_fifo_offset (ls->rx_fifo); m.tx_fifo = fifo_segment_fifo_offset (ls->tx_fifo); |