Skip to content
Snippets Groups Projects
Commit 3eb329bb authored by Andy Green's avatar Andy Green
Browse files

reverse proxy: correct scan length so NUL goes in right place

parent c4c60fb9
No related branches found
No related tags found
No related merge requests found
...@@ -1273,7 +1273,7 @@ lws_http_action(struct lws *wsi) ...@@ -1273,7 +1273,7 @@ lws_http_action(struct lws *wsi)
if (lws_hdr_copy(wsi, p, if (lws_hdr_copy(wsi, p,
(int)(&rpath[sizeof(rpath) - 1] - p), (int)(&rpath[sizeof(rpath) - 1] - p),
WSI_TOKEN_HTTP_URI_ARGS) > 0) WSI_TOKEN_HTTP_URI_ARGS) > 0)
while (--na) { while (na--) {
if (*p == '\0') if (*p == '\0')
*p = '&'; *p = '&';
p++; p++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment