cryptsetup: fix wrong argument order for mechanism vs. name

Fixes: https://github.com/systemd/systemd/issues/39655
This commit is contained in:
Martin Hundebøll
2025-11-19 12:52:25 +01:00
committed by Zbigniew Jędrzejewski-Szmek
parent 6f1f3a3917
commit c6c43d677a

View File

@@ -1233,7 +1233,7 @@ static int measured_crypt_activate_by_passphrase(
if (keyslot < 0)
return keyslot;
return measured_crypt_activate_by_volume_key(cd, mechanism, name, keyslot, vk, vks, flags);
return measured_crypt_activate_by_volume_key(cd, name, mechanism, keyslot, vk, vks, flags);
shortcut:
keyslot = crypt_activate_by_passphrase(cd, name, keyslot, passphrase, passphrase_size, flags);