Schannel: Don't emit error when peer performs graceful disconnection

Change-Id: Ie19a31fc61223d954badc704324adf4f5f7d361e
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
(cherry picked from commit 3ff8629a0fbdf432086a47a1047d03ad457118c6)
This commit is contained in:
Mårten Nordheim 2022-12-15 16:58:19 +01:00
parent cdbc83eab8
commit 6acfa08745

View File

@ -1659,8 +1659,6 @@ void TlsCryptographSchannel::transmit()
} else if (status == SEC_I_CONTEXT_EXPIRED) {
// 'remote' has initiated a shutdown
disconnectFromHost();
setErrorAndEmit(d, QAbstractSocket::RemoteHostClosedError,
schannelErrorToString(status));
break;
} else if (status == SEC_I_RENEGOTIATE) {
// 'remote' wants to renegotiate