summaryrefslogtreecommitdiff
path: root/src/journal/journald.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-07-18 13:28:36 +0200
committerLennart Poettering <lennart@poettering.net>2012-07-18 13:28:39 +0200
commitc2a623d842af3a4d67e1f4e365f6d6a47f1c6cb4 (patch)
treeee627f570355af60943a302033378b8feb0ee442 /src/journal/journald.c
parentbbd16ba5739c9b3c19e32a5a2f9e4e93d0ddb0c0 (diff)
journald: fix another bad memory access
If we rotate due to header out of date we need the new journal file object, too.
Diffstat (limited to 'src/journal/journald.c')
-rw-r--r--src/journal/journald.c4
1 files changed, 4 insertions, 0 deletions
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 (;;) {