chiark / gitweb /
journald: properly handle if we have no PID in a kmsg line
authorLennart Poettering <lennart@poettering.net>
Wed, 30 May 2012 23:26:06 +0000 (01:26 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 30 May 2012 23:26:06 +0000 (01:26 +0200)
src/journal/journald.c

index 8ce9ce8..f034a56 100644 (file)
@@ -1827,7 +1827,7 @@ static void proc_kmsg_line(Server *s, const char *p) {
 
                 /* Avoid any messages we generated ourselves via
                  * log_info() and friends. */
 
                 /* Avoid any messages we generated ourselves via
                  * log_info() and friends. */
-                if (is_us(pid))
+                if (pid && is_us(pid))
                         goto finish;
 
                 if (s->forward_to_syslog)
                         goto finish;
 
                 if (s->forward_to_syslog)