mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 10:13:51 +01:00
fix(SecureSocket): Reset does not close socket, it is closed in dtor. (#4415)
This commit is contained in:
parent
47a4db37e5
commit
8d3de8a5ed
@ -54,6 +54,7 @@ SecureSocketImpl::~SecureSocketImpl()
|
||||
{
|
||||
try
|
||||
{
|
||||
close();
|
||||
reset();
|
||||
}
|
||||
catch (...)
|
||||
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user