Return correct data offset for BITLK in crypt_get_data_offset

First part of the encrypted data will be always directly after
the header.

Fixes: #518
This commit is contained in:
Vojtěch Trefný
2020-01-17 14:00:12 +01:00
committed by Vojtech Trefny
parent e4387d2bd1
commit 61f5dcb11e
2 changed files with 4 additions and 1 deletions

View File

@@ -1003,7 +1003,7 @@ int BITLK_activate(struct crypt_device *cd,
}
r = device_block_adjust(cd, crypt_data_device(cd), DEV_EXCL,
crypt_get_data_offset(cd), &dmd.size, &dmd.flags);
0, &dmd.size, &dmd.flags);
if (r) {
crypt_free_volume_key(open_fvek_key);
return r;