mirror of
https://github.com/stefanberger/swtpm.git
synced 2026-08-08 18:46:56 +00:00
swtpm: Also check the state blob in the CUSE TPM
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
This commit is contained in:
parent
b085ff2335
commit
98059a2908
@ -646,10 +646,13 @@ ptm_set_stateblob_append(uint32_t blobtype,
|
||||
stateblob.is_encrypted,
|
||||
0 /* tpm_number */,
|
||||
blobname);
|
||||
if (res == TPM_SUCCESS && stateblob.length)
|
||||
res = tpmlib_validate_blob(blobtype);
|
||||
} else {
|
||||
res = TPM_BAD_PARAMETER;
|
||||
}
|
||||
|
||||
|
||||
TPM_Free(stateblob.data);
|
||||
stateblob.data = NULL;
|
||||
stateblob.length = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user