summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Synacek <jsynacek@redhat.com>2018-10-31 12:50:19 +0100
committerLukáš Nykrýn <lnykryn@redhat.com>2018-12-06 09:05:23 +0100
commit220a60a61a91153fd8e49e58884b9b0b904888f6 (patch)
tree09811beb5bc60ce4a202117692d864387b167a69
parenteb141ba81158feb74118da4e7a3f2266b11ffe10 (diff)
downloadsystemd-220a60a61a91153fd8e49e58884b9b0b904888f6.tar.gz
sd-bus: properly initialize containersv239-9
Fixes a SIGSEGV introduced by commit 38a5315a3a6fab745d8c86ff9e486faaf50b28d1. The same problem doesn't exist upstream, as the container structure there is initialized using a compound literal, which is zeroed out by default. Related: #1635435
-rw-r--r--src/libsystemd/sd-bus/bus-message.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd/sd-bus/bus-message.c b/src/libsystemd/sd-bus/bus-message.c
index d55cb14843..780c8c6185 100644
--- a/src/libsystemd/sd-bus/bus-message.c
+++ b/src/libsystemd/sd-bus/bus-message.c
@@ -2004,6 +2004,7 @@ _public_ int sd_bus_message_open_container(
w = m->containers + m->n_containers++;
w->enclosing = type;
w->signature = TAKE_PTR(signature);
+ w->peeked_signature = NULL;
w->index = 0;
w->array_size = array_size;
w->before = before;