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:
parent
006f2cce2e
commit
5cf6f7eafe
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ static int ssl_cache_pick_writing_slot( mbedtls_ssl_cache_context *cache,
|
||||||
|
|
||||||
old = cache->chain;
|
old = cache->chain;
|
||||||
cache->chain = old->next;
|
cache->chain = old->next;
|
||||||
cur->next = NULL;
|
old->next = NULL;
|
||||||
prv->next = old;
|
prv->next = old;
|
||||||
#endif /* MBEDTLS_HAVE_TIME */
|
#endif /* MBEDTLS_HAVE_TIME */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue