summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/new_nvmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/new_nvmem.c b/common/new_nvmem.c
index dea4f92cf5..e55460b042 100644
--- a/common/new_nvmem.c
+++ b/common/new_nvmem.c
@@ -1762,7 +1762,7 @@ static void unmarshal_state_reset(uint8_t *pad, int size, uint32_t offset)
TPM2B_AUTH_Unmarshal(&srd->nullProof, &pad, &size);
TPM2B_DIGEST_Unmarshal((TPM2B_DIGEST *)(&srd->nullSeed), &pad, &size);
UINT32_Unmarshal(&srd->clearCount, &pad, &size);
- UINT64_Marshal(&srd->objectContextID, &pad, &size);
+ UINT64_Unmarshal(&srd->objectContextID, &pad, &size);
memcpy(srd->contextArray, pad, sizeof(srd->contextArray));
size -= sizeof(srd->contextArray);