]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal-verify: tighten check for compression of non-objects 23131/head
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Apr 2022 14:08:36 +0000 (16:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 26 Apr 2022 19:55:49 +0000 (21:55 +0200)
src/libsystemd/sd-journal/journal-verify.c

index 3b2b72f0c75f0fe4bc0a325753563f3b125a8088..21a5b1ca9e16006a0e010520a18955d045d24f13 100644 (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.",