From: Lennart Poettering Date: Tue, 10 Dec 2013 01:57:46 +0000 (+0100) Subject: bus: it's OK to send messages with an empty payload but non-empty signature X-Git-Tag: v209~1072 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=041b85cf01ac2783d61b22da4eea8503cf8b0d5a;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/libsystemd-bus/bus-message.c b/src/libsystemd-bus/bus-message.c index f01f8b15bc2..32af8609b3d 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: