cpio: don't claim we measured anything if we weren't even asked

This is a bugfix.

Follow-up for 599fe002a1
This commit is contained in:
Lennart Poettering
2022-08-26 13:08:32 +02:00
parent 71611f2b56
commit 5eb1d8561c
+1 -1
View File
@@ -488,7 +488,7 @@ nothing:
*ret_buffer_size = 0;
if (ret_measured)
*ret_measured = true;
*ret_measured = n_tpm_pcr > 0;
return EFI_SUCCESS;
}