mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Return -EINVAL if keyslot context can not access keyring key.
This commit is contained in:
@@ -516,8 +516,8 @@ static int get_key_by_vk_in_keyring(struct crypt_device *cd,
|
||||
&key, &key_size);
|
||||
if (r < 0) {
|
||||
log_err(cd, _("Failed to read volume key candidate from keyring."));
|
||||
kc->error = r;
|
||||
return r;
|
||||
kc->error = -EINVAL;
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
*r_vk = crypt_alloc_volume_key_by_safe_alloc((void **)&key);
|
||||
|
||||
Reference in New Issue
Block a user