Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -4397,7 +4397,9 @@ inline bool process_and_close_socket_ssl(
}
}

SSL_shutdown(ssl);
if (ret) {
SSL_shutdown(ssl); // shutdown only if not already closed by remote
}
{
std::lock_guard<std::mutex> guard(ctx_mutex);
SSL_free(ssl);
Expand Down