From aba98ded5f552ae03704836acfecbd9db8872fed Mon Sep 17 00:00:00 2001 From: "Keith Burns (alagalah)" Date: Thu, 22 Feb 2018 03:23:40 -0800 Subject: VCL: Fix for vppcom_session_listen() q_len <= 0 crash Change-Id: I089dd3855fc21b26a125ee392c7548d44b5732b8 Signed-off-by: Keith Burns (alagalah) --- src/vcl/vppcom.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/vcl') diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c index 6d11526276b..4b3581a664c 100644 --- a/src/vcl/vppcom.c +++ b/src/vcl/vppcom.c @@ -2682,6 +2682,9 @@ vppcom_session_listen (uint32_t listen_session_index, uint32_t q_len) u64 listen_vpp_handle; int rv, retval; + if (q_len == 0 || q_len == ~0) + q_len = vcm->cfg.listen_queue_size; + VCL_LOCK_AND_GET_SESSION (listen_session_index, &listen_session); if (listen_session->is_vep) -- cgit 1.2.3-korg