summaryrefslogtreecommitdiff
path: root/src/journal/journal-authenticate.c
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/journal/journal-authenticate.c
parentfeb12d3ed2c7f9132c64773c7c41b9e3a608a814 (diff)
journal: add missing endianess conversion
Diffstat (limited to 'src/journal/journal-authenticate.c')
-rw-r--r--src/journal/journal-authenticate.c2
1 files changed, 1 insertions, 1 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;
}