ssl_tls13_write_key_share_ext: initialize key_exchange_len (compiler warning)

Signed-off-by: Przemyslaw Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
Przemyslaw Stekiel 2022-02-10 15:56:26 +01:00
parent c0824bfb11
commit 4f419e55a1

View file

@ -309,7 +309,7 @@ static int ssl_tls13_write_key_share_ext( mbedtls_ssl_context *ssl,
/* Pointer to group */
unsigned char *group = p;
/* Length of key_exchange */
size_t key_exchange_len;
size_t key_exchange_len = 0;
/* Check there is space for header of KeyShareEntry
* - group (2 bytes)