Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
vlib: autogenerate <node> before <last-in-arc> constraints
[vpp.git]
/
src
/
vcl
/
vppcom.c
diff --git
a/src/vcl/vppcom.c
b/src/vcl/vppcom.c
index
263fa91
..
0e5d4fa
100644
(file)
--- a/
src/vcl/vppcom.c
+++ b/
src/vcl/vppcom.c
@@
-1897,7
+1897,7
@@
vppcom_session_write_inline (uint32_t session_handle, void *buf, size_t n,
svm_msg_q_t *mq;
u8 is_ct;
- if (PREDICT_FALSE (!buf))
+ if (PREDICT_FALSE (!buf
|| n == 0
))
return VPPCOM_EINVAL;
s = vcl_session_get_w_handle (wrk, session_handle);