1
0
Fork 0
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:
Andy Green 2018-01-12 08:21:42 +08:00
parent cc20895f50
commit d069136478

View file

@ -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) {