mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-07-28 06:47:47 +00:00
Fix NULL handling in mbedtls_ssl_config.free() function
Signed-off-by: Troy-Butler <[email protected]>
This commit is contained in:
@@ -6029,6 +6029,10 @@ int mbedtls_ssl_config_defaults(mbedtls_ssl_config *conf,
|
||||
*/
|
||||
void mbedtls_ssl_config_free(mbedtls_ssl_config *conf)
|
||||
{
|
||||
if (conf == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
#if defined(MBEDTLS_DHM_C)
|
||||
mbedtls_mpi_free(&conf->dhm_P);
|
||||
mbedtls_mpi_free(&conf->dhm_G);
|
||||
|
||||
Reference in New Issue
Block a user