mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-06-20 00:37:47 +00:00
Explicitly nullify grp->id instead of freeing.
This commit is contained in:
parent
1f5e6abfb9
commit
79a11fa0d6
|
@ -836,6 +836,7 @@ int mbedtls_ecp_group_load( mbedtls_ecp_group *grp, mbedtls_ecp_group_id id )
|
||||||
#endif /* MBEDTLS_ECP_DP_CURVE448_ENABLED */
|
#endif /* MBEDTLS_ECP_DP_CURVE448_ENABLED */
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
grp->id = id;
|
||||||
return( MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE );
|
return( MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue