From c93c47f3a4a4795238c26e25acaba9099ee1e8f8 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 22 Apr 2016 12:31:50 +0800 Subject: [PATCH] client init fds pos to minus 1 Signed-off-by: Andy Green --- lib/client-handshake.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/client-handshake.c b/lib/client-handshake.c index 43580460..86cc5ba1 100644 --- a/lib/client-handshake.c +++ b/lib/client-handshake.c @@ -359,6 +359,7 @@ lws_client_connect(struct lws_context *context, const char *address, 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 = ssl_connection;