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.
This commit is contained in:
Lennart Poettering
2013-12-10 02:57:46 +01:00
parent 9bb59c29f0
commit 041b85cf01
-3
View File
@@ -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: