mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-12-24 17:41:01 +03:00
Fix swapping of first and last entry in SSL session cache
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
@@ -225,7 +225,7 @@ static int ssl_cache_pick_writing_slot( mbedtls_ssl_cache_context *cache,
|
||||
|
||||
old = cache->chain;
|
||||
cache->chain = old->next;
|
||||
cur->next = NULL;
|
||||
old->next = NULL;
|
||||
prv->next = old;
|
||||
#endif /* MBEDTLS_HAVE_TIME */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user