1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00

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