mirror of
https://github.com/stefanberger/libtpms
synced 2026-01-13 19:03:05 +00:00
tpm2: Expect TPM_SUCCESS from tpm_io_getlocality() callback function
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
77950dd917
commit
353e835caa
@ -188,7 +188,8 @@ static TPM_RESULT TPM2_Process(unsigned char **respbuffer, uint32_t *resp_size,
|
||||
if (cbs->tpm_io_getlocality) {
|
||||
TPM_MODIFIER_INDICATOR locty;
|
||||
|
||||
locality = cbs->tpm_io_getlocality(&locty, 0);
|
||||
/* called function is trusted and must return valid value */
|
||||
cbs->tpm_io_getlocality(&locty, 0);
|
||||
|
||||
locality = locty;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user