Skip to content

Commit

Permalink
Merge pull request #1157 from erl987/develop
Browse files Browse the repository at this point in the history
Fixing a bug in the NetSSL_Win module (Host name verification failed error)
  • Loading branch information
obiltschnig committed Feb 21, 2016
2 parents 974d6e7 + 6578910 commit 7a8e0d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NetSSL_Win/src/SecureSocketImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ void SecureSocketImpl::connectSSL(bool completeHandshake)

if (_peerHostName.empty())
{
_peerHostName = _pSocket->address().host().toString();
_peerHostName = _pSocket->peerAddress().host().toString();
}

initClientContext();
Expand Down Expand Up @@ -1522,7 +1522,7 @@ void SecureSocketImpl::stateIllegal()

void SecureSocketImpl::stateConnected()
{
_peerHostName = _pSocket->address().host().toString();
_peerHostName = _pSocket->peerAddress().host().toString();
initClientContext();
performInitialClientHandshake();
}
Expand Down

0 comments on commit 7a8e0d1

Please sign in to comment.