mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 17:38:10 +00:00
Add goto cleanup; for consistency md.c
This commit is contained in:
parent
46f5a3e9b4
commit
42e5e1084e
1 changed files with 3 additions and 2 deletions
|
@ -358,8 +358,9 @@ int mbedtls_md_hmac_starts( mbedtls_md_context_t *ctx, const unsigned char *key,
|
||||||
|
|
||||||
if( ( ret = ctx->md_info->starts_func( ctx->md_ctx ) ) != 0 )
|
if( ( ret = ctx->md_info->starts_func( ctx->md_ctx ) ) != 0 )
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
ret = ctx->md_info->update_func( ctx->md_ctx, ipad,
|
if( ( ret = ctx->md_info->update_func( ctx->md_ctx, ipad,
|
||||||
ctx->md_info->block_size );
|
ctx->md_info->block_size ) ) != 0 )
|
||||||
|
goto cleanup;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
mbedtls_zeroize( sum, sizeof( sum ) );
|
mbedtls_zeroize( sum, sizeof( sum ) );
|
||||||
|
|
Loading…
Reference in a new issue