diff options
author | Andrejs Hanins <andrejs.hanins@ubnt.com> | 2016-02-22 23:35:12 +0800 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2016-02-22 23:35:31 +0800 |
commit | 171d29695f49d92fb25cb82757a864b6dca59468 (patch) | |
tree | 00933886414f7cac29464384d48154d874801ff9 | |
parent | 969212e1dd58a8db59a98787e274bdc75326a34e (diff) | |
download | libwebsockets-171d29695f49d92fb25cb82757a864b6dca59468.tar.gz libwebsockets-171d29695f49d92fb25cb82757a864b6dca59468.tar.bz2 libwebsockets-171d29695f49d92fb25cb82757a864b6dca59468.zip |
client connect must init position_in_fds_table
-rw-r--r-- | lib/client-handshake.c | 1 |
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; |