mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-01 04:13:29 +00:00
Don't use 0-initializer for structs
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
parent
7e6eb9fa27
commit
a5b1a3945b
@ -2768,7 +2768,7 @@ static int ssl_write_hello_verify_request( mbedtls_ssl_context *ssl )
|
|||||||
static void ssl_check_id_based_session_resumption( mbedtls_ssl_context *ssl )
|
static void ssl_check_id_based_session_resumption( mbedtls_ssl_context *ssl )
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
mbedtls_ssl_session session_tmp = { 0 };
|
mbedtls_ssl_session session_tmp;
|
||||||
mbedtls_ssl_session * const session = ssl->session_negotiate;
|
mbedtls_ssl_session * const session = ssl->session_negotiate;
|
||||||
|
|
||||||
/* Resume is 0 by default, see ssl_handshake_init().
|
/* Resume is 0 by default, see ssl_handshake_init().
|
||||||
@ -2784,6 +2784,8 @@ static void ssl_check_id_based_session_resumption( mbedtls_ssl_context *ssl )
|
|||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
mbedtls_ssl_session_init( &session_tmp );
|
||||||
|
|
||||||
ret = ssl->conf->f_get_cache( ssl->conf->p_cache,
|
ret = ssl->conf->f_get_cache( ssl->conf->p_cache,
|
||||||
session->id,
|
session->id,
|
||||||
session->id_len,
|
session->id_len,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user