adopt readbuf fix no ah path
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
4ba798dd7d
commit
58cc41bc1c
1 changed files with 1 additions and 0 deletions
|
@ -892,6 +892,7 @@ lws_adopt_socket_readbuf(struct lws_context *context, lws_sockfd_type accept_fd,
|
|||
*/
|
||||
|
||||
wsi->u.hdr.preamble_rx = lws_malloc(len);
|
||||
memcpy(wsi->u.hdr.preamble_rx, readbuf, len);
|
||||
wsi->u.hdr.preamble_rx_len = len;
|
||||
|
||||
return wsi;
|
||||
|
|
Loading…
Add table
Reference in a new issue