chiark / gitweb /
journal: add missing endianess conversion
authorLennart Poettering <lennart@poettering.net>
Mon, 20 Aug 2012 17:21:19 +0000 (19:21 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 20 Aug 2012 17:21:19 +0000 (19:21 +0200)
src/journal/journal-authenticate.c
src/journal/journal-verify.c

index 93cc9d9..4354810 100644 (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;
         }
index a76384b..29a9229 100644 (file)
@@ -39,7 +39,6 @@
  * - evolve key even if nothing happened in regular intervals
  *
  * - check with sparse
- * - 64bit conversions
  *
  * */