Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
http_static: misc bug fixes
[vpp.git]
/
src
/
plugins
/
http_static
/
static_server.c
diff --git
a/src/plugins/http_static/static_server.c
b/src/plugins/http_static/static_server.c
index
a4c62fc
..
a76cb87
100644
(file)
--- a/
src/plugins/http_static/static_server.c
+++ b/
src/plugins/http_static/static_server.c
@@
-384,6
+384,8
@@
hss_ts_rx_callback (session_t *ts)
vec_validate (request, msg.data.len - 1);
rv = svm_fifo_dequeue (ts->rx_fifo, msg.data.len, request);
ASSERT (rv == msg.data.len);
+ /* request must be a proper C-string in addition to a vector */
+ vec_add1 (request, 0);
}
/* Find and send data */