1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

Merge branch 'development' into development-restricted

* development:
  Address PR review comments
  Fix crash when calling `mbedtls_ssl_cache_free` twice
This commit is contained in:
Manuel Pégourié-Gonnard
2017-12-19 11:39:35 +01:00
2 changed files with 3 additions and 0 deletions

View File

@ -321,6 +321,7 @@ void mbedtls_ssl_cache_free( mbedtls_ssl_cache_context *cache )
#if defined(MBEDTLS_THREADING_C)
mbedtls_mutex_free( &cache->mutex );
#endif
cache->chain = NULL;
}
#endif /* MBEDTLS_SSL_CACHE_C */