Skip to content

Commit d01a46f

Browse files
authored
Merge pull request #355 from gasbytes/patch
memcmp -> memcpy
2 parents 61abbc1 + 5f9ff20 commit d01a46f

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)