mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Drop bogus usage of vk->uploaded.
The volume key uploaded attribute is respected only with regard to volume keys uploaded in the thread keyring in logon key type. Here the uploaded attribute was set for volume keys uploaded in custom user keyrings in custome key descriptions.
This commit is contained in:
@@ -4221,8 +4221,6 @@ static key_serial_t crypt_single_volume_key_load_in_user_keyring(struct crypt_de
|
||||
kid = keyring_add_key_to_custom_keyring(cd->keyring_key_type, user_key_name, vk->key, vk->keylength, cd->keyring_to_link_vk);
|
||||
if (kid <= 0)
|
||||
log_dbg(cd, "The keyring_link_key_to_keyring function failed (error %d).", errno);
|
||||
else
|
||||
vk->uploaded = true;
|
||||
|
||||
return kid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user