chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
journal: fix hash table lookup logic
[elogind.git]
/
src
/
journal
/
journal-file.c
diff --git
a/src/journal/journal-file.c
b/src/journal/journal-file.c
index 4a006d3bf3510b282b87678bf0cfa93e3bc5aeed..80775e1acf940f46a1f7a44125c950c4ae21c076 100644
(file)
--- a/
src/journal/journal-file.c
+++ b/
src/journal/journal-file.c
@@
-595,7
+595,7
@@
int journal_file_find_data_object_with_hash(
return r;
if (le64toh(o->data.hash) != hash)
-
return -EBADMSG
;
+
goto next
;
if (o->object.flags & OBJECT_COMPRESSED) {
#ifdef HAVE_XZ
@@
-637,6
+637,7
@@
int journal_file_find_data_object_with_hash(
return 1;
}
+ next:
p = le64toh(o->data.next_hash_offset);
}