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: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=041b85cf01ac2783d61b22da4eea8503cf8b0d5a;p=elogind.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 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: