From 5eb1d8561c076e847b045c2c34f772944fee82e7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 25 Aug 2022 18:08:49 +0200 Subject: [PATCH] cpio: don't claim we measured anything if we weren't even asked This is a bugfix. Follow-up for 599fe002a135570406504998dbb7a42dabc963da --- src/boot/efi/cpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/efi/cpio.c b/src/boot/efi/cpio.c index cec901d0c3e..9ffa935e0f6 100644 --- a/src/boot/efi/cpio.c +++ b/src/boot/efi/cpio.c @@ -488,7 +488,7 @@ nothing: *ret_buffer_size = 0; if (ret_measured) - *ret_measured = true; + *ret_measured = n_tpm_pcr > 0; return EFI_SUCCESS; } -- 2.47.3