Merge contexts for session cache
diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c
index 68fc81e..9a6d7f3 100644
--- a/programs/ssl/ssl_server2.c
+++ b/programs/ssl/ssl_server2.c
@@ -1584,9 +1584,9 @@
if( opt.cache_timeout != -1 )
mbedtls_ssl_cache_set_timeout( &cache, opt.cache_timeout );
- mbedtls_ssl_set_session_cache( &conf,
- mbedtls_ssl_cache_get, &cache,
- mbedtls_ssl_cache_set, &cache );
+ mbedtls_ssl_set_session_cache( &conf, &cache,
+ mbedtls_ssl_cache_get,
+ mbedtls_ssl_cache_set );
#endif
#if defined(MBEDTLS_SSL_SESSION_TICKETS)