summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libwebsockets.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c
index 1feb728..b05f79e 100644
--- a/lib/libwebsockets.c
+++ b/lib/libwebsockets.c
@@ -1887,6 +1887,7 @@ libwebsocket_service_fd(struct libwebsocket_context *context,
* definitively ready from browser pov.
*/
+ len = 1;
while (wsi->parser_state != WSI_PARSING_COMPLETE && len > 0) {
#ifdef LWS_OPENSSL_SUPPORT
if (wsi->use_ssl)