[systemd-commits] src/journal

Lennart Poettering lennart at kemper.freedesktop.org
Wed Jul 18 04:29:30 PDT 2012


 src/journal/journald.c |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit c2a623d842af3a4d67e1f4e365f6d6a47f1c6cb4
Author: Lennart Poettering <lennart at poettering.net>
Date:   Wed Jul 18 13:28:36 2012 +0200

    journald: fix another bad memory access
    
    If we rotate due to header out of date we need the new journal file
    object, too.

diff --git a/src/journal/journald.c b/src/journal/journald.c
index c29d75c..17aac88 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 (;;) {



More information about the systemd-commits mailing list