Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Commit

Permalink
fix(endpoint): Fix null error message
Browse files Browse the repository at this point in the history
This commit fix the wrong error message
  • Loading branch information
splasky committed Jul 10, 2020
1 parent 954efe0 commit 45c1b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/cipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ status_t aes_encrypt(ta_cipher_ctx* cipher_ctx) {
memcpy(cipher_ctx->hmac, digest, TA_AES_HMAC_SIZE);
status = SC_OK;
exit:
if (!err) ta_log_error("%s\n", err);
if (err != NULL) ta_log_error("%s\n", err);
mbedtls_aes_free(&ctx);
mbedtls_md_free(&sha_ctx);
return status;
Expand Down

0 comments on commit 45c1b6e

Please sign in to comment.