Use mbedtls_platform_zeroize() in ssl_get_ecdh_params_from_cert()

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
Neil Armstrong 2022-03-22 17:28:51 +01:00
parent 4f33fbc7e9
commit 5cd5f76d67

View file

@ -2914,7 +2914,7 @@ static int ssl_get_ecdh_params_from_cert( mbedtls_ssl_context *ssl )
ret = 0;
cleanup:
memset( buf, 0, sizeof( buf ) );
mbedtls_platform_zeroize( buf, sizeof( buf ) );
return( ret );
}