chiark / gitweb /
journal: add missing endianess conversion
[elogind.git] / src / journal / journal-authenticate.c
index 93cc9d94a1804e9fca421b78f23cf1e20a1efab5..435481000dcb1dbcbb294556cd450484db4ad849 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;
         }