mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-31 05:17:26 +00:00
Fix unused variable that happened during merge
Fix an "unused variable" warning that happened in some configurations (without EC, found by depend-pkalg.pl) and was not present in any parent PR but only in the result of merging them: one of the PRs clarified the distinction between `ret` and `verify_ret` and the other removed one occurrence of using `ret`, and the conjunction of the two made `ret` unused in some cases. Resolving by reducing the scope of that variable.
This commit is contained in:
parent
de8869c529
commit
b391766802
|
@ -6493,7 +6493,6 @@ static int ssl_parse_certificate_verify( mbedtls_ssl_context *ssl,
|
|||
mbedtls_x509_crt *chain,
|
||||
void *rs_ctx )
|
||||
{
|
||||
int ret = 0;
|
||||
int verify_ret;
|
||||
const mbedtls_ssl_ciphersuite_t *ciphersuite_info =
|
||||
ssl->handshake->ciphersuite_info;
|
||||
|
@ -6543,6 +6542,7 @@ static int ssl_parse_certificate_verify( mbedtls_ssl_context *ssl,
|
|||
|
||||
#if defined(MBEDTLS_ECP_C)
|
||||
{
|
||||
int ret;
|
||||
mbedtls_pk_context *pk;
|
||||
ret = mbedtls_x509_crt_pk_acquire( chain, &pk );
|
||||
if( ret != 0 )
|
||||
|
|
Loading…
Reference in a new issue