chiark / gitweb /
journald: fix another bad memory access
[elogind.git] / src / journal / journald.c
index c29d75c..17aac88 100644 (file)
@@ -478,6 +478,10 @@ static void write_to_journal(Server *s, uid_t uid, struct iovec *iovec, unsigned
                 server_rotate(s);
                 server_vacuum(s);
                 vacuumed = true;
+
+                f = find_journal(s, uid);
+                if (!f)
+                        return;
         }
 
         for (;;) {