mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-16 07:09:56 +00:00
Fix compile-time guard in session cache implementation
Signed-off-by: Hanno Becker <[email protected]>
This commit is contained in:
+2
-1
@@ -131,8 +131,9 @@ static int ssl_cache_pick_writing_slot( mbedtls_ssl_cache_context *cache,
|
||||
{
|
||||
#if defined(MBEDTLS_HAVE_TIME)
|
||||
mbedtls_time_t t = mbedtls_time( NULL ), oldest = 0;
|
||||
#endif /* MBEDTLS_HAVE_TIME */
|
||||
|
||||
mbedtls_ssl_cache_entry *old = NULL;
|
||||
#endif
|
||||
int count = 0;
|
||||
mbedtls_ssl_cache_entry *cur, *prv;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user