summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-07-18 13:10:09 +0200
committerLennart Poettering <lennart@poettering.net>2012-07-18 13:13:15 +0200
commit32fca2d5b746b86bbbbd4f1b57064076cfc2ae4b (patch)
tree717eb17a8da873a6aecf7c9a22a4cc90696c9c0c /src
parent94469041d938809048d6e7a8655c23ed84e0b72a (diff)
journald: fix bad memory access
After vacuuming we need to retrieve the journal file object again, since it might have changed.
Diffstat (limited to 'src')
-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 d8cfa66b75..c29d75c9c4 100644
--- a/src/journal/journald.c
+++ b/src/journal/journald.c
@@ -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.");
}
}