chiark / gitweb /
journal: map objects to context set by caller, not by actual object type
[elogind.git] / src / journal / journal-file.c
index 622eb165e131d32eea9f2c79bc71e6511cdf924d..01b7f89fef58b8d36d7c9ebf2fa68a0be5f42912 100644 (file)
@@ -445,7 +445,7 @@ int journal_file_move_to_object(JournalFile *f, int type, uint64_t offset, Objec
                 return -EBADMSG;
 
         if (s > sizeof(ObjectHeader)) {
-                r = journal_file_move_to(f, o->object.type, false, offset, s, &t);
+                r = journal_file_move_to(f, type_to_context(type), false, offset, s, &t);
                 if (r < 0)
                         return r;