Add goto exit; stmt in rsa.c for consistency

This commit is contained in:
Andres Amaya Garcia 2017-07-20 14:42:16 +01:00
parent 0963e6cfac
commit c5c7d76bf5

View file

@ -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 );