|
|
1abbee |
From 7eee42f5d268084171d435de2b16333d2a0f79ab Mon Sep 17 00:00:00 2001
|
|
|
1abbee |
From: Lennart Poettering <lennart@poettering.net>
|
|
|
1abbee |
Date: Wed, 5 Aug 2015 11:31:52 +0300
|
|
|
1abbee |
Subject: [PATCH] journald: fix count of object meta fields
|
|
|
1abbee |
|
|
|
1abbee |
There are 12 object meta fields created in dispatch_message_real(), but
|
|
|
1abbee |
we only allocated space for 11. Fix this.
|
|
|
1abbee |
|
|
|
1abbee |
Fixes #866.
|
|
|
1abbee |
|
|
|
1abbee |
Cherry-picked from: 704e4fe7a18a13a8651c0064ef3eda91027baffc
|
|
|
1abbee |
Related: #1318994
|
|
|
1abbee |
---
|
|
|
1abbee |
src/journal/journald-server.h | 2 +-
|
|
|
1abbee |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
1abbee |
|
|
|
1abbee |
diff --git a/src/journal/journald-server.h b/src/journal/journald-server.h
|
|
Pablo Greco |
48fc63 |
index c96877c508..b1263a7586 100644
|
|
|
1abbee |
--- a/src/journal/journald-server.h
|
|
|
1abbee |
+++ b/src/journal/journald-server.h
|
|
|
1abbee |
@@ -148,7 +148,7 @@ typedef struct Server {
|
|
|
1abbee |
#define N_IOVEC_META_FIELDS 20
|
|
|
1abbee |
#define N_IOVEC_KERNEL_FIELDS 64
|
|
|
1abbee |
#define N_IOVEC_UDEV_FIELDS 32
|
|
|
1abbee |
-#define N_IOVEC_OBJECT_FIELDS 11
|
|
|
1abbee |
+#define N_IOVEC_OBJECT_FIELDS 12
|
|
|
1abbee |
|
|
|
1abbee |
void server_dispatch_message(Server *s, struct iovec *iovec, unsigned n, unsigned m, const struct ucred *ucred, const struct timeval *tv, const char *label, size_t label_len, const char *unit_id, int priority, pid_t object_pid);
|
|
|
1abbee |
void server_driver_message(Server *s, sd_id128_t message_id, const char *format, ...) _printf_(3,4);
|