Fix indentation and add goto cleanup; stmt

This commit is contained in:
Andres Amaya Garcia 2017-07-21 14:21:53 +01:00
parent b2b063ff35
commit aa464ef23a
3 changed files with 6 additions and 5 deletions

View file

@ -436,7 +436,8 @@ int mbedtls_md_hmac( const mbedtls_md_info_t *md_info,
goto cleanup;
if( ( ret = mbedtls_md_hmac_update( &ctx, input, ilen ) ) != 0 )
goto cleanup;
ret = mbedtls_md_hmac_finish( &ctx, output );
if( ( ret = mbedtls_md_hmac_finish( &ctx, output ) ) != 0 )
goto cleanup;
cleanup:
mbedtls_md_free( &ctx );