1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-24 02:28:55 +03:00

Deadlock when closing connection when TLS was never established (caused by 268f6355)

Source commit: 24d6adda3af26be8871a9973338011cfe8d0c86c
This commit is contained in:
Martin Prikryl
2021-10-04 13:00:47 +00:00
parent 1d5793c336
commit 2c0b486de5

View File

@@ -606,7 +606,7 @@ int CAsyncSslSocketLayer::Receive(void* lpBuf, int nBufLen, int nFlags)
void CAsyncSslSocketLayer::Close()
{
if (!m_nShutDown)
if (!m_nShutDown && m_bSslEstablished)
{
ShutDown();
while (!ShutDownComplete())