journal: add missing endianess conversion

This commit is contained in:
Lennart Poettering 2012-08-20 19:21:19 +02:00
parent feb12d3ed2
commit 3e4b9b506d
2 changed files with 1 additions and 2 deletions

View File

@ -362,7 +362,7 @@ int journal_file_fss_load(JournalFile *f) {
goto finish;
}
if (le64toh(m->fsprg_state_size) != FSPRG_stateinbytes(m->fsprg_secpar)) {
if (le64toh(m->fsprg_state_size) != FSPRG_stateinbytes(le16toh(m->fsprg_secpar))) {
r = -EBADMSG;
goto finish;
}

View File

@ -39,7 +39,6 @@
* - evolve key even if nothing happened in regular intervals
*
* - check with sparse
* - 64bit conversions
*
* */