Skip to content

Commit

Permalink
Merge pull request #355 from gasbytes/patch
Browse files Browse the repository at this point in the history
memcmp -> memcpy
  • Loading branch information
dgarske authored May 27, 2024
2 parents 61abbc1 + 5f9ff20 commit d01a46f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tpm2.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ static int TPM2_ResponseProcess(TPM2_CTX* ctx, TPM2_Packet* packet,

/* Save off last known HMAC */
session->hmac.size = authRsp.hmac.size;
XMEMCMP(session->hmac.buffer, authRsp.hmac.buffer,
XMEMCPY(session->hmac.buffer, authRsp.hmac.buffer,
authRsp.hmac.size);
#else
(void)cmdCode;
Expand Down

0 comments on commit d01a46f

Please sign in to comment.