mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2026-01-09 17:05:34 +01:00
Drop needless size restriction on keyslots size.
This commit is contained in:
@@ -126,7 +126,7 @@ int LUKS2_check_metadata_area_size(uint64_t metadata_size)
|
||||
|
||||
int LUKS2_check_keyslots_area_size(uint64_t keyslots_size)
|
||||
{
|
||||
return (!keyslots_size || MISALIGNED_4K(keyslots_size) ||
|
||||
return (MISALIGNED_4K(keyslots_size) ||
|
||||
keyslots_size > LUKS2_MAX_KEYSLOTS_SIZE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user