We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3de42d commit d74d0bdCopy full SHA for d74d0bd
src/cryptsetup/cryptsetup-tokens/luks2-tpm2.c
@@ -58,7 +58,7 @@ int acquire_luks2_key(
58
return -ENOANO;
59
60
/* If we're using a PIN, and the luks header has a salt, it better have a pin too */
61
- if ((flags & TPM2_FLAGS_USE_PIN) && salt && !pin)
+ if ((flags & TPM2_FLAGS_USE_PIN) && salt_size > 0 && !pin)
62
63
64
if (pin && salt_size > 0) {
0 commit comments