Skip to content

Commit

Permalink
memcmp -> memcpy
Browse files Browse the repository at this point in the history
  • Loading branch information
gasbytes committed May 27, 2024
1 parent 61abbc1 commit 5f9ff20
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 5f9ff20

Please sign in to comment.