diff options
-rw-r--r-- | src/tcgbios.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tcgbios.c b/src/tcgbios.c index 4cff4ce..d62ab99 100644 --- a/src/tcgbios.c +++ b/src/tcgbios.c @@ -1269,7 +1269,6 @@ hash_log_extend_event_int(const struct hleei_short *hleei_s, struct hleeo *hleeo) { u32 rc = 0; - struct hleo hleo; struct hleei_long *hleei_l = (struct hleei_long *)hleei_s; const void *logdataptr; u32 logdatalen; @@ -1312,7 +1311,7 @@ hash_log_extend_event_int(const struct hleei_short *hleei_s, hleeo->opblength = sizeof(struct hleeo); hleeo->reserved = 0; - hleeo->eventnumber = hleo.eventnumber; + hleeo->eventnumber = tpm_state.entry_count; memcpy(hleeo->digest, pcpes->digest, sizeof(hleeo->digest)); err_exit: |