mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-09 02:55:27 +00:00
Merge remote-tracking branch 'public/pr/1160' into mbedtls-2.1
* public/pr/1160: Address PR review comments Backport 2.1:Fix crash when calling `mbedtls_ssl_cache_free` twice
This commit is contained in:
commit
227692a6b1
|
@ -48,6 +48,8 @@ Bugfix
|
||||||
* Add a check for invalid private parameters in ecdsa_sign.
|
* Add a check for invalid private parameters in ecdsa_sign.
|
||||||
Reported by Yolan Romailler.
|
Reported by Yolan Romailler.
|
||||||
* Fix word size check in in pk.c to not depend on MBEDTLS_HAVE_INT64.
|
* Fix word size check in in pk.c to not depend on MBEDTLS_HAVE_INT64.
|
||||||
|
* Fix crash when calling mbedtls_ssl_cache_free() twice. Found by
|
||||||
|
MilenkoMitrovic, #1104
|
||||||
|
|
||||||
Changes
|
Changes
|
||||||
* Extend cert_write example program by options to set the CRT version
|
* Extend cert_write example program by options to set the CRT version
|
||||||
|
|
|
@ -321,6 +321,7 @@ void mbedtls_ssl_cache_free( mbedtls_ssl_cache_context *cache )
|
||||||
#if defined(MBEDTLS_THREADING_C)
|
#if defined(MBEDTLS_THREADING_C)
|
||||||
mbedtls_mutex_free( &cache->mutex );
|
mbedtls_mutex_free( &cache->mutex );
|
||||||
#endif
|
#endif
|
||||||
|
cache->chain = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* MBEDTLS_SSL_CACHE_C */
|
#endif /* MBEDTLS_SSL_CACHE_C */
|
||||||
|
|
Loading…
Reference in a new issue