aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKeith Burns (alagalah) <alagalah@gmail.com>2018-02-22 03:23:40 -0800
committerKeith Burns (alagalah) <alagalah@gmail.com>2018-02-22 03:42:03 -0800
commitaba98ded5f552ae03704836acfecbd9db8872fed (patch)
treebcf17f25da5a65335e0bb7bc29721dbc42803718 /src
parenta67a03e324c44def197225f8689fb9aa45cc6729 (diff)
VCL: Fix for vppcom_session_listen() q_len <= 0 crash
Change-Id: I089dd3855fc21b26a125ee392c7548d44b5732b8 Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/vcl/vppcom.c3
1 files changed, 3 insertions, 0 deletions
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)