mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 00:03:00 +00:00
[MBEDTLS] Update to version 2.7.18. CORE-17252
This commit is contained in:
parent
218e2596de
commit
2e53fc8edb
30 changed files with 713 additions and 600 deletions
6
dll/3rdparty/mbedtls/ssl_srv.c
vendored
6
dll/3rdparty/mbedtls/ssl_srv.c
vendored
|
@ -3393,6 +3393,12 @@ static int ssl_parse_encrypted_pms( mbedtls_ssl_context *ssl,
|
|||
if( ret != 0 )
|
||||
return( ret );
|
||||
|
||||
/* In case of a failure in decryption, peer_pmslen may not have been
|
||||
* initialized, and it is accessed later. The diff will be nonzero anyway,
|
||||
* but it's better to avoid accessing uninitialized memory in any case.
|
||||
*/
|
||||
peer_pmslen = 0;
|
||||
|
||||
ret = mbedtls_pk_decrypt( mbedtls_ssl_own_key( ssl ), p, len,
|
||||
peer_pms, &peer_pmslen,
|
||||
sizeof( peer_pms ),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue