chiark / gitweb /
journald: fix bad memory access
[elogind.git] / src / journal / journald.c
index d8cfa66..c29d75c 100644 (file)
@@ -513,6 +513,10 @@ static void write_to_journal(Server *s, uid_t uid, struct iovec *iovec, unsigned
                 server_vacuum(s);
                 vacuumed = true;
 
+                f = find_journal(s, uid);
+                if (!f)
+                        return;
+
                 log_info("Retrying write.");
         }
 }