From c2a623d842af3a4d67e1f4e365f6d6a47f1c6cb4 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 18 Jul 2012 13:28:36 +0200 Subject: journald: fix another bad memory access If we rotate due to header out of date we need the new journal file object, too. --- src/journal/journald.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/journal/journald.c b/src/journal/journald.c index c29d75c9c4..17aac8877b 100644 --- a/src/journal/journald.c +++ b/src/journal/journald.c @@ -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 (;;) { -- cgit v1.2.3-54-g00ecf