client connect must init position_in_fds_table

This commit is contained in:
Andrejs Hanins 2016-02-22 23:35:12 +08:00 committed by Andy Green
parent 969212e1dd
commit 171d29695f

View file

@ -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;