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

service: always restrict rx to serve_buf_size

parent ad2dac06
Branches v2.0-stable
No related tags found
No related merge requests found
...@@ -918,6 +918,9 @@ read: ...@@ -918,6 +918,9 @@ read:
eff_buf.token_len = LWS_MAX_SOCKET_IO_BUF; eff_buf.token_len = LWS_MAX_SOCKET_IO_BUF;
} }
if (eff_buf.token_len > LWS_MAX_SOCKET_IO_BUF)
eff_buf.token_len = LWS_MAX_SOCKET_IO_BUF;
eff_buf.token_len = lws_ssl_capable_read(wsi, eff_buf.token_len = lws_ssl_capable_read(wsi,
(unsigned char *)eff_buf.token, pending ? pending : (unsigned char *)eff_buf.token, pending ? pending :
eff_buf.token_len); eff_buf.token_len);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment