mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-11-24 07:20:56 +07: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:
parent
bbd16ba573
commit
c2a623d842
@ -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 (;;) {
|
||||
|
Loading…
Reference in New Issue
Block a user