measure: figure success of measurement correctly
Found by Claude Code Review.
This commit is contained in:
+1
-1
@@ -309,7 +309,7 @@ EFI_STATUS tpm_log_tagged_event(
|
||||
}
|
||||
|
||||
err = tpm2_measure_to_pcr_and_tagged_event_log(tpm2, pcrindex, buffer, buffer_size, event_id, description);
|
||||
if (!err)
|
||||
if (err != EFI_SUCCESS)
|
||||
return err;
|
||||
|
||||
*ret_measured = true;
|
||||
|
||||
Reference in New Issue
Block a user