Merge remote-tracking branch 'public/pr/1145' into development

* public/pr/1145:
  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:37:36 +01:00
commit 705c52f5ec
2 changed files with 3 additions and 0 deletions

View File

@ -54,6 +54,8 @@ Bugfix
Reported by Yolan Romailler.
* Fix word size check in in pk.c to not depend on MBEDTLS_HAVE_INT64.
* Fix incorrect unit in benchmark output. #850
* Fix crash when calling mbedtls_ssl_cache_free() twice. Found by
MilenkoMitrovic, #1104
Changes
* Extend cert_write example program by options to set the CRT version

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 */