1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-19 22:50:17 +03:00

journal-verify: tighten check for compression of non-objects

This commit is contained in:
Lennart Poettering 2022-04-20 16:08:36 +02:00
parent 4d698d12de
commit d4cc5c8037

View File

@ -148,7 +148,7 @@ static int journal_file_object_verify(JournalFile *f, uint64_t offset, Object *o
* possible field values. It does not follow any references to
* other objects. */
if ((o->object.flags & OBJECT_COMPRESSED_XZ) &&
if ((o->object.flags & _OBJECT_COMPRESSED_MASK) != 0 &&
o->object.type != OBJECT_DATA) {
error(offset,
"Found compressed object of type %s that isn't of type data, which is not allowed.",