mirror of
https://github.com/stefanberger/swtpm.git
synced 2026-02-05 05:59:18 +00:00
swtpm_ioctl: print error message in case setting state blob fails
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
This commit is contained in:
parent
e396140204
commit
3ca520fd1c
@ -574,6 +574,13 @@ static int do_load_state_blob(int fd, bool is_chardev, const char *blobtype,
|
||||
goto cleanup;
|
||||
}
|
||||
res = devtoh32(is_chardev, pss.u.resp.tpm_result);
|
||||
if (res != 0) {
|
||||
fprintf(stderr,
|
||||
"TPM result from PTM_SET_STATEBLOB: 0x%x\n",
|
||||
res);
|
||||
had_error = 1;
|
||||
goto cleanup;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user