]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cpio: don't claim we measured anything if we weren't even asked 24460/head
authorLennart Poettering <lennart@poettering.net>
Thu, 25 Aug 2022 16:08:49 +0000 (18:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 26 Aug 2022 11:08:32 +0000 (13:08 +0200)
This is a bugfix.

Follow-up for 599fe002a135570406504998dbb7a42dabc963da

src/boot/efi/cpio.c

index cec901d0c3ee7e1987afc25abbb13377c6581090..9ffa935e0f63cbbaab22536505e009cd88e04c6b 100644 (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;
 }