mirror of
https://github.com/cuberite/polarssl.git
synced 2025-10-02 10:00:47 -04:00
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:
parent
1e085686ec
commit
9dc4402afa
@ -122,6 +122,7 @@ void init_handshake_options( handshake_test_options *opts )
|
|||||||
opts->cli_log_fun = NULL;
|
opts->cli_log_fun = NULL;
|
||||||
opts->resize_buffers = 1;
|
opts->resize_buffers = 1;
|
||||||
#if defined(MBEDTLS_SSL_CACHE_C)
|
#if defined(MBEDTLS_SSL_CACHE_C)
|
||||||
|
opts->cache = NULL;
|
||||||
ASSERT_ALLOC( opts->cache, sizeof( mbedtls_ssl_cache_context ) );
|
ASSERT_ALLOC( opts->cache, sizeof( mbedtls_ssl_cache_context ) );
|
||||||
mbedtls_ssl_cache_init( opts->cache );
|
mbedtls_ssl_cache_init( opts->cache );
|
||||||
exit:
|
exit:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user