mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Fix a bug in keyring keyslot context.
It always returned zero upon successful keyslot unlock instead expected unlocked keyslot id.
This commit is contained in:
committed by
Milan Broz
parent
e48c74b77f
commit
41c72eaa65
@@ -354,7 +354,7 @@ static int get_luks2_key_by_keyring(struct crypt_device *cd,
|
||||
if (r < 0)
|
||||
kc->error = r;
|
||||
|
||||
return 0;
|
||||
return r;
|
||||
}
|
||||
|
||||
static int get_luks2_volume_key_by_keyring(struct crypt_device *cd,
|
||||
|
||||
Reference in New Issue
Block a user