Gilles Peskine | 1226ece | 2021-02-09 18:52:49 +0100 | [diff] [blame^] | 1 | Bugfix |
2 | * Ensure that calling mbedtls_rsa_free() twice is safe. This happens | ||||
3 | when some Mbed TLS library functions fail. Such a double-free was | ||||
4 | not safe when MBEDTLS_THREADING_C was enabled on platforms where | ||||
5 | freeing a mutex twice is not safe. | ||||
6 | * Fix a resource leak in a bad-arguments case of mbedtls_rsa_gen_key() | ||||
7 | when MBEDTLS_THREADING_C is enabled on platforms where initializing | ||||
8 | a mutex allocates resources. |