[SCHANNEL]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 22 May 2016 10:56:22 +0000 (10:56 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 22 May 2016 10:56:22 +0000 (10:56 +0000)
- Set received length to zero when the receive result is MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY instead of pretending we got data
CORE-11285 #resolve

svn path=/trunk/; revision=71373

reactos/dll/win32/schannel/schannel_mbedtls.c

index 86ae387..cba72c2 100644 (file)
@@ -682,6 +682,7 @@ SECURITY_STATUS schan_imp_recv(schan_imp_session session, void *buffer,
     }
     else if (ret == MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY)
     {
+        *length = 0;
         TRACE("MBEDTLS schan_imp_recv: ret == MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY -> SEC_E_OK\n");
         return SEC_E_OK;
     }