1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

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

This commit is contained in:
Andy Green 2018-11-15 20:16:54 +08:00
parent c4c60fb95e
commit 3eb329bb32

View file

@ -1273,7 +1273,7 @@ lws_http_action(struct lws *wsi)
if (lws_hdr_copy(wsi, p,
(int)(&rpath[sizeof(rpath) - 1] - p),
WSI_TOKEN_HTTP_URI_ARGS) > 0)
while (--na) {
while (na--) {
if (*p == '\0')
*p = '&';
p++;