journal: fix hash table lookup logic

This commit is contained in:
Lennart Poettering 2011-12-27 22:58:20 +01:00
parent 24b51289e3
commit 85a131e8d8
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}

View file

@ -35,7 +35,6 @@
* - implement audit gateway
* - extend hash tables table as we go
* - accelerate looking for "all hostnames" and suchlike.
* - throttling
* - cryptographic hash
* - never access beyond fle size check
* - OR of matches is borked...