commit | c5c7d76bf5693578241382e729b73367c8775702 | [log] [tgz] |
---|---|---|
author | Andres Amaya Garcia <andres.amayagarcia@arm.com> | Thu Jul 20 14:42:16 2017 +0100 |
committer | Andres Amaya Garcia <andres.amayagarcia@arm.com> | Thu Jul 20 14:42:16 2017 +0100 |
tree | 0845338d6f0530710dd3083284ce8bd26b8b36c3 | |
parent | 0963e6cfac2230d68c6ed1aa220ac41f096796ff [diff] [blame] |
Add goto exit; stmt in rsa.c for consistency
diff --git a/library/rsa.c b/library/rsa.c index 4daa5b3..2f78ce3 100644 --- a/library/rsa.c +++ b/library/rsa.c
@@ -1446,8 +1446,11 @@ 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 );