Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
a67a03e
)
VCL: Fix for vppcom_session_listen() q_len <= 0 crash
48/10748/2
author
Keith Burns (alagalah)
<alagalah@gmail.com>
Thu, 22 Feb 2018 11:23:40 +0000
(
03:23
-0800)
committer
Keith Burns (alagalah)
<alagalah@gmail.com>
Thu, 22 Feb 2018 11:42:03 +0000
(
03:42
-0800)
Change-Id: I089dd3855fc21b26a125ee392c7548d44b5732b8
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
src/vcl/vppcom.c
patch
|
blob
|
history
diff --git
a/src/vcl/vppcom.c
b/src/vcl/vppcom.c
index
6d11526
..
4b3581a
100644
(file)
--- 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)