mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 16:25:43 +01:00
Fix mbedtls_ecp_curve_info_from_name() for NULL input
This commit is contained in:
parent
549e455a42
commit
b7a04a7851
@ -505,6 +505,9 @@ const mbedtls_ecp_curve_info *mbedtls_ecp_curve_info_from_name( const char *name
|
|||||||
{
|
{
|
||||||
const mbedtls_ecp_curve_info *curve_info;
|
const mbedtls_ecp_curve_info *curve_info;
|
||||||
|
|
||||||
|
if( name == NULL )
|
||||||
|
return( NULL );
|
||||||
|
|
||||||
for( curve_info = mbedtls_ecp_curve_list();
|
for( curve_info = mbedtls_ecp_curve_list();
|
||||||
curve_info->grp_id != MBEDTLS_ECP_DP_NONE;
|
curve_info->grp_id != MBEDTLS_ECP_DP_NONE;
|
||||||
curve_info++ )
|
curve_info++ )
|
||||||
|
Loading…
Reference in New Issue
Block a user