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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user