Skip to content

Commit cdc451a

Browse files
vojtechtrefnymbroz
authored andcommitted
Fix expected keyslot context for LUKS1 activate_by_keyring
1 parent 04ca508 commit cdc451a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/keyslot_context.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ static int get_luks1_volume_key_by_keyring(struct crypt_device *cd,
479479
int r;
480480

481481
assert(cd);
482-
assert(kc && kc->type == CRYPT_KC_TYPE_PASSPHRASE);
482+
assert(kc && kc->type == CRYPT_KC_TYPE_KEYRING);
483483
assert(r_vk);
484484

485485
r = get_passphrase_by_keyring(cd, kc, CONST_CAST(const char **) &kc->i_passphrase,

0 commit comments

Comments
 (0)