mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-06 13:17:44 +03:00
kdbus: make sure msg structure is properly initialized
This commit is contained in:
parent
e86b80b834
commit
d9115e1852
@ -117,6 +117,8 @@ static int bus_message_setup_kmsg(sd_bus_message *m) {
|
||||
if (!m->kdbus)
|
||||
return -ENOMEM;
|
||||
|
||||
memset(m->kdbus, 0, sz);
|
||||
|
||||
m->kdbus->flags =
|
||||
((m->header->flags & SD_BUS_MESSAGE_NO_REPLY_EXPECTED) ? 0 : KDBUS_MSG_FLAGS_EXPECT_REPLY) |
|
||||
((m->header->flags & SD_BUS_MESSAGE_NO_AUTO_START) ? KDBUS_MSG_FLAGS_NO_AUTO_START : 0);
|
||||
|
Loading…
Reference in New Issue
Block a user