test_suite_ssl: zeroize the cache pointer in case if the struct memory gets reused

Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
Andrzej Kurek 2022-07-04 05:46:15 -04:00
parent 1e085686ec
commit 9dc4402afa

View File

@ -122,6 +122,7 @@ void init_handshake_options( handshake_test_options *opts )
opts->cli_log_fun = NULL;
opts->resize_buffers = 1;
#if defined(MBEDTLS_SSL_CACHE_C)
opts->cache = NULL;
ASSERT_ALLOC( opts->cache, sizeof( mbedtls_ssl_cache_context ) );
mbedtls_ssl_cache_init( opts->cache );
exit: