From: Lennart Poettering Date: Thu, 25 Aug 2022 16:08:49 +0000 (+0200) Subject: cpio: don't claim we measured anything if we weren't even asked X-Git-Tag: v252-rc1~330^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F24460%2Fhead;p=thirdparty%2Fsystemd.git cpio: don't claim we measured anything if we weren't even asked This is a bugfix. Follow-up for 599fe002a135570406504998dbb7a42dabc963da --- 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; }