1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 06:52:22 +03:00

journald: fix another bad memory access

If we rotate due to header out of date we need the new journal file
object, too.
This commit is contained in:
Lennart Poettering 2012-07-18 13:28:36 +02:00
parent bbd16ba573
commit c2a623d842

View 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 (;;) {