From 171d29695f49d92fb25cb82757a864b6dca59468 Mon Sep 17 00:00:00 2001 From: Andrejs Hanins Date: Mon, 22 Feb 2016 23:35:12 +0800 Subject: [PATCH] client connect must init position_in_fds_table --- lib/client-handshake.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/client-handshake.c b/lib/client-handshake.c index 7ec045c..96854af 100644 --- a/lib/client-handshake.c +++ b/lib/client-handshake.c @@ -394,6 +394,7 @@ lws_client_connect_via_info(struct lws_client_connect_info *i) wsi->state = LWSS_CLIENT_UNCONNECTED; wsi->protocol = NULL; wsi->pending_timeout = NO_PENDING_TIMEOUT; + wsi->position_in_fds_table = -1; #ifdef LWS_OPENSSL_SUPPORT wsi->use_ssl = i->ssl_connection; -- 2.7.4