mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Validate LUKS2 header in crypt_set_uuid().
This commit is contained in:
committed by
Milan Broz
parent
5f5ffcd48a
commit
b31e029000
@@ -880,8 +880,7 @@ int LUKS2_hdr_uuid(struct crypt_device *cd, struct luks2_hdr *hdr, const char *u
|
||||
|
||||
uuid_unparse(partitionUuid, hdr->uuid);
|
||||
|
||||
/* FIXME: why is this not LUKS2_hdr_write? */
|
||||
return LUKS2_disk_hdr_write(cd, hdr, crypt_metadata_device(cd));
|
||||
return LUKS2_hdr_write(cd, hdr);
|
||||
}
|
||||
|
||||
int LUKS2_hdr_labels(struct crypt_device *cd, struct luks2_hdr *hdr,
|
||||
|
||||
Reference in New Issue
Block a user