summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-08-20 19:21:19 +0200
committerLennart Poettering <lennart@poettering.net>2012-08-20 19:21:19 +0200
commit3e4b9b506d676d1cb8692306b38c05f8529e5cdb (patch)
tree9eb0329d4afa91446829bb7bed15f6c3e3281198 /src
parentfeb12d3ed2c7f9132c64773c7c41b9e3a608a814 (diff)
journal: add missing endianess conversion
Diffstat (limited to 'src')
-rw-r--r--src/journal/journal-authenticate.c2
-rw-r--r--src/journal/journal-verify.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/journal/journal-authenticate.c b/src/journal/journal-authenticate.c
index 93cc9d94a1..435481000d 100644
--- a/src/journal/journal-authenticate.c
+++ b/src/journal/journal-authenticate.c
@@ -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;
}
diff --git a/src/journal/journal-verify.c b/src/journal/journal-verify.c
index a76384bdb2..29a9229e53 100644
--- a/src/journal/journal-verify.c
+++ b/src/journal/journal-verify.c
@@ -39,7 +39,6 @@
* - evolve key even if nothing happened in regular intervals
*
* - check with sparse
- * - 64bit conversions
*
* */