Merge pull request from erl987/develop

Fixing a bug in the NetSSL_Win module (Host name verification failed error)
This commit is contained in:
Günter Obiltschnig 2016-02-21 09:38:08 +01:00
commit 7a8e0d12d5

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