ssl set ssl to NULL on close

This commit is contained in:
Andrew Canaday 2015-12-03 09:44:15 +08:00 committed by Andy Green
parent 765914cab1
commit ad2248a207

View file

@ -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 */
}