mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-25 13:43:31 +00:00
Use memset( x, 0, sizeof( x ) )
to clear local structure
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
parent
9caed14a21
commit
fc1f4135c3
@ -2803,7 +2803,7 @@ static void ssl_handle_id_based_session_resumption( mbedtls_ssl_context *ssl )
|
||||
/* Move semantics */
|
||||
mbedtls_ssl_session_free( session );
|
||||
*session = session_tmp;
|
||||
memset( &session_tmp, 0, sizeof( mbedtls_ssl_session ) );
|
||||
memset( &session_tmp, 0, sizeof( session_tmp ) );
|
||||
|
||||
MBEDTLS_SSL_DEBUG_MSG( 3, ( "session successfully restored from cache" ) );
|
||||
ssl->handshake->resume = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user