lws_ssl_client_connect2 remove duplicate close on error path
authorAndy Green <andy@warmcat.com>
Mon, 6 Jun 2016 17:34:02 +0000 (01:34 +0800)
committerAndy Green <andy@warmcat.com>
Mon, 6 Jun 2016 17:34:02 +0000 (01:34 +0800)
https://github.com/warmcat/libwebsockets/issues/532

Signed-off-by: Andy Green <andy@warmcat.com>
lib/ssl-client.c

index 10fe444a3cd4f745d508668f61508b40704ed19a..df1c5e4ad665692243d4fb036adf8b547af6a1f7 100644 (file)
@@ -278,7 +278,6 @@ lws_ssl_client_connect2(struct lws *wsi)
                        lwsl_err("server's cert didn't look good, X509_V_ERR = %d: %s\n",
                                 n, ERR_error_string(n, sb));
                        lws_ssl_elaborate_error();
-                       lws_close_free_wsi(wsi, LWS_CLOSE_STATUS_NOSTATUS);
                        return -1;
                }
        }