mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
excessive ah hold: stop trying to list headers at sentinel
One header earlier than before https://github.com/warmcat/libwebsockets/issues/1152
This commit is contained in:
parent
cc20895f50
commit
d069136478
1 changed files with 2 additions and 0 deletions
|
@ -1073,6 +1073,8 @@ lws_service_fd_tsi(struct lws_context *context, struct lws_pollfd *pollfd, int t
|
|||
c = lws_token_to_string(m);
|
||||
if (!c)
|
||||
break;
|
||||
if (!(*c))
|
||||
break;
|
||||
|
||||
len = lws_hdr_total_length(wsi, m);
|
||||
if (!len || len > sizeof(buf) - 1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue