Use crypt_volume_key_next where appropriate.

This commit is contained in:
Ondrej Kozina
2019-11-29 15:45:32 +01:00
committed by Milan Broz
parent a0e87c9420
commit faafe09bd0
2 changed files with 2 additions and 2 deletions

View File

@@ -3405,7 +3405,7 @@ int LUKS2_reencrypt_locked_recovery_by_passphrase(struct crypt_device *cd,
r = LUKS2_volume_key_load_in_keyring_by_digest(cd, hdr, vk, crypt_volume_key_get_id(vk));
if (r < 0)
goto err;
vk = vk->next;
vk = crypt_volume_key_next(vk);
}
if (luks2_check_device_size(cd, hdr, minimal_size, &device_size, true, false))