mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 15:35:29 +00:00
Add goto exit; stmt in rsa.c for consistency
This commit is contained in:
parent
0963e6cfac
commit
c5c7d76bf5
|
@ -1446,8 +1446,11 @@ int mbedtls_rsa_rsassa_pss_verify_ext( mbedtls_rsa_context *ctx,
|
|||
if( ( ret = mbedtls_md_finish( &md_ctx, result ) ) != 0 )
|
||||
goto exit;
|
||||
|
||||
if( ( ret = memcmp( p + slen, result, hlen ) ) != 0 )
|
||||
if( memcmp( p + slen, result, hlen ) != 0 )
|
||||
{
|
||||
ret = MBEDTLS_ERR_RSA_VERIFY_FAILED;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
exit:
|
||||
mbedtls_md_free( &md_ctx );
|
||||
|
|
Loading…
Reference in a new issue