Fix expected keyslot context for LUKS1 activate_by_keyring

This commit is contained in:
Vojtech Trefny
2025-06-23 13:44:39 +02:00
committed by Milan Broz
parent 04ca5087f8
commit cdc451a61a

View File

@@ -479,7 +479,7 @@ static int get_luks1_volume_key_by_keyring(struct crypt_device *cd,
int r;
assert(cd);
assert(kc && kc->type == CRYPT_KC_TYPE_PASSPHRASE);
assert(kc && kc->type == CRYPT_KC_TYPE_KEYRING);
assert(r_vk);
r = get_passphrase_by_keyring(cd, kc, CONST_CAST(const char **) &kc->i_passphrase,