From caebda361e59e69898c2f2f7f757165a825ec4a3 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 26 May 2024 04:29:00 +0900 Subject: [PATCH] cryptsetup: use TPM2_FLAGS_USE_PCRLOCK at one more place Follow-up for 404aea7815595c1324947ed7f2a7502b17d3cc01. --- src/shared/cryptsetup-tpm2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/cryptsetup-tpm2.c b/src/shared/cryptsetup-tpm2.c index 335bb2eb890..bfd7d3ab092 100644 --- a/src/shared/cryptsetup-tpm2.c +++ b/src/shared/cryptsetup-tpm2.c @@ -199,7 +199,7 @@ int acquire_tpm2_key( pubkey_pcr_mask, signature_json, b64_salted_pin, - pcrlock_path ? &pcrlock_policy : NULL, + FLAGS_SET(flags, TPM2_FLAGS_USE_PCRLOCK) ? &pcrlock_policy : NULL, primary_alg, &blob, policy_hash, -- 2.47.3