From: Yu Watanabe Date: Sat, 25 May 2024 19:29:00 +0000 (+0900) Subject: cryptsetup: use TPM2_FLAGS_USE_PCRLOCK at one more place X-Git-Tag: v256-rc4~125^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=caebda361e59e69898c2f2f7f757165a825ec4a3;p=thirdparty%2Fsystemd.git cryptsetup: use TPM2_FLAGS_USE_PCRLOCK at one more place Follow-up for 404aea7815595c1324947ed7f2a7502b17d3cc01. --- 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,