Validate LUKS2 header in crypt_set_uuid().

This commit is contained in:
Ondrej Kozina
2018-01-03 10:25:45 +01:00
committed by Milan Broz
parent 5f5ffcd48a
commit b31e029000

View File

@@ -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,