measure: figure success of measurement correctly

Found by Claude Code Review.
This commit is contained in:
Lennart Poettering
2026-03-12 14:43:48 +01:00
parent c248d6a409
commit bb19b61049
+1 -1
View File
@@ -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;