Skip to content

Commit

Permalink
fix(SecureSocket): Reset does not close socket, it is closed in dtor. (
Browse files Browse the repository at this point in the history
  • Loading branch information
matejk committed Mar 29, 2024
1 parent 4f96d05 commit aee93c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NetSSL_OpenSSL/src/SecureSocketImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ SecureSocketImpl::~SecureSocketImpl()
{
try
{
close();
reset();
}
catch (...)
Expand Down Expand Up @@ -634,7 +635,6 @@ void SecureSocketImpl::setPeerHostName(const std::string& peerHostName)

void SecureSocketImpl::reset()
{
close();
if (_pSSL)
{
::SSL_set_ex_data(_pSSL, SSLManager::instance().socketIndex(), nullptr);
Expand Down

0 comments on commit aee93c0

Please sign in to comment.