diff options
author | Keith Burns (alagalah) <alagalah@gmail.com> | 2018-02-22 03:23:40 -0800 |
---|---|---|
committer | Keith Burns (alagalah) <alagalah@gmail.com> | 2018-02-22 03:42:03 -0800 |
commit | aba98ded5f552ae03704836acfecbd9db8872fed (patch) | |
tree | bcf17f25da5a65335e0bb7bc29721dbc42803718 /src/vcl/vppcom.c | |
parent | a67a03e324c44def197225f8689fb9aa45cc6729 (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/vcl/vppcom.c')
-rw-r--r-- | src/vcl/vppcom.c | 3 |
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) |