ssl set ssl to NULL on close
authorAndrew Canaday <andrew.canaday@nytimes.com>
Thu, 3 Dec 2015 01:44:15 +0000 (09:44 +0800)
committerAndy Green <andy.green@linaro.org>
Thu, 3 Dec 2015 01:44:15 +0000 (09:44 +0800)
lib/ssl.c

index 04c96cf..cb19d60 100644 (file)
--- a/lib/ssl.c
+++ b/lib/ssl.c
@@ -515,6 +515,7 @@ lws_ssl_close(struct libwebsocket *wsi)
        SSL_shutdown(wsi->ssl);
        compatible_close(n);
        SSL_free(wsi->ssl);
+       wsi->ssl = NULL;
 
        return 1; /* handled */
 }