Skip to content

Commit

Permalink
Merge pull request LiteOS#610 from w00164089/primary
Browse files Browse the repository at this point in the history
Fixed pclint warning
  • Loading branch information
jimscen-wang authored Dec 5, 2018
2 parents f29ee04 + e481018 commit f55ac44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/connectivity/agent_tiny/atiny_mqtt/hmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ int mbedtls_hmac_calc(mbedtls_hmac_t *hmac_info)
goto exit;
}

mbedtls_md_hmac_starts(&mbedtls_md_ctx, hmac_info->secret, hmac_info->secret_len);
mbedtls_md_hmac_update(&mbedtls_md_ctx, hmac_info->input, hmac_info->input_len);
mbedtls_md_hmac_finish(&mbedtls_md_ctx, hmac_info->digest);
(void)mbedtls_md_hmac_starts(&mbedtls_md_ctx, hmac_info->secret, hmac_info->secret_len);
(void)mbedtls_md_hmac_update(&mbedtls_md_ctx, hmac_info->input, hmac_info->input_len);
(void)mbedtls_md_hmac_finish(&mbedtls_md_ctx, hmac_info->digest);

exit:
mbedtls_md_free(&mbedtls_md_ctx);
Expand Down

0 comments on commit f55ac44

Please sign in to comment.