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:30:23 +08:00
parent efbd6c1b50
commit 3846986851

View file

@ -1174,6 +1174,8 @@ lws_service_fd_tsi(struct lws_context *context, struct lws_pollfd *pollfd,
c = lws_token_to_string(m);
if (!c)
break;
if (!(*c))
break;
len = lws_hdr_total_length(wsi, m);
if (!len || len > (int)sizeof(buf) - 1) {