summaryrefslogtreecommitdiff
path: root/lib/client-handshake.c
diff options
context:
space:
mode:
authorAndrejs Hanins <andrejs.hanins@ubnt.com>2016-02-22 23:35:12 +0800
committerAndy Green <andy.green@linaro.org>2016-02-22 23:35:31 +0800
commit171d29695f49d92fb25cb82757a864b6dca59468 (patch)
tree00933886414f7cac29464384d48154d874801ff9 /lib/client-handshake.c
parent969212e1dd58a8db59a98787e274bdc75326a34e (diff)
downloadlibwebsockets-171d29695f49d92fb25cb82757a864b6dca59468.tar.gz
libwebsockets-171d29695f49d92fb25cb82757a864b6dca59468.tar.bz2
libwebsockets-171d29695f49d92fb25cb82757a864b6dca59468.zip
client connect must init position_in_fds_table
Diffstat (limited to 'lib/client-handshake.c')
-rw-r--r--lib/client-handshake.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/client-handshake.c b/lib/client-handshake.c
index 7ec045cf..96854afe 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;