Skip to content

Commit 5f9ff20

Browse files
committed
memcmp -> memcpy
1 parent 61abbc1 commit 5f9ff20

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tpm2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ static int TPM2_ResponseProcess(TPM2_CTX* ctx, TPM2_Packet* packet,
373373

374374
/* Save off last known HMAC */
375375
session->hmac.size = authRsp.hmac.size;
376-
XMEMCMP(session->hmac.buffer, authRsp.hmac.buffer,
376+
XMEMCPY(session->hmac.buffer, authRsp.hmac.buffer,
377377
authRsp.hmac.size);
378378
#else
379379
(void)cmdCode;

0 commit comments

Comments
 (0)