mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-28 19:13:28 +00:00
Initialize uninitialized variable in ECHDE-PSK part of ssl_parse_client_key_exchange()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
parent
fc834f2e2c
commit
549a3e4737
@ -4077,7 +4077,7 @@ static int ssl_parse_client_key_exchange( mbedtls_ssl_context *ssl )
|
||||
/* The ECDH secret is the premaster secret used for key derivation. */
|
||||
unsigned char *psm = ssl->handshake->premaster;
|
||||
unsigned char *psm_end = psm + sizeof( ssl->handshake->premaster );
|
||||
size_t zlen;
|
||||
size_t zlen = 0;
|
||||
|
||||
/* Compute ECDH shared secret. */
|
||||
status = psa_raw_key_agreement( PSA_ALG_ECDH,
|
||||
|
Loading…
x
Reference in New Issue
Block a user