summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-message.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-10 02:57:46 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-10 02:57:46 +0100
commit041b85cf01ac2783d61b22da4eea8503cf8b0d5a (patch)
treeeaa588430774424591f9ba14ddeb4538fe74237f /src/libsystemd-bus/bus-message.c
parent9bb59c29f009079d871027686a72f091abd6a2a7 (diff)
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.
Diffstat (limited to 'src/libsystemd-bus/bus-message.c')
-rw-r--r--src/libsystemd-bus/bus-message.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libsystemd-bus/bus-message.c b/src/libsystemd-bus/bus-message.c
index f01f8b15bc..32af8609b3 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: