mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-08-28 13:15:43 +00:00
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:
@@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user