#3191: Fixing a bug in the NetSSL_Win module (Host name verification failed error)

This commit is contained in:
Günter Obiltschnig 2021-06-15 13:46:19 +02:00
parent ea455ad891
commit 37f7315bc4

View File

@ -726,7 +726,7 @@ void SecureSocketImpl::connectSSL(bool completeHandshake)
if (_peerHostName.empty()) if (_peerHostName.empty())
{ {
_peerHostName = _pSocket->address().host().toString(); _peerHostName = _pSocket->peerAddress().host().toString();
} }
initClientContext(); initClientContext();
@ -1548,7 +1548,7 @@ void SecureSocketImpl::stateIllegal()
void SecureSocketImpl::stateConnected() void SecureSocketImpl::stateConnected()
{ {
_peerHostName = _pSocket->address().host().toString(); _peerHostName = _pSocket->peerAddress().host().toString();
initClientContext(); initClientContext();
performInitialClientHandshake(); performInitialClientHandshake();
} }