From 041b85cf01ac2783d61b22da4eea8503cf8b0d5a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 10 Dec 2013 02:57:46 +0100 Subject: [PATCH] bus: it's OK to send messages with an empty payload but non-empty signature THis might happen when sending arrays with 0 enttries, hence this is not an indication for a problem. --- src/libsystemd-bus/bus-message.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/libsystemd-bus/bus-message.c b/src/libsystemd-bus/bus-message.c index f01f8b15b..32af8609b 100644 --- a/src/libsystemd-bus/bus-message.c +++ b/src/libsystemd-bus/bus-message.c @@ -5085,9 +5085,6 @@ int bus_message_parse_fields(sd_bus_message *m) { if (m->n_fds != unix_fds) return -EBADMSG; - if (isempty(m->root_container.signature) != (BUS_MESSAGE_BODY_SIZE(m) == 0)) - return -EBADMSG; - switch (m->header->type) { case SD_BUS_MESSAGE_SIGNAL: -- 2.30.2