mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
journal: fix hash table lookup logic
This commit is contained in:
parent
24b51289e3
commit
85a131e8d8
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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...
|
||||
|
Loading…
Reference in New Issue
Block a user