journald: fix bad memory access

After vacuuming we need to retrieve the journal file object again, since
it might have changed.
This commit is contained in:
Lennart Poettering 2012-07-18 13:10:09 +02:00
parent 94469041d9
commit 32fca2d5b7

View 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.");
}
}