diff options
author | Kay Sievers <kay@vrfy.org> | 2013-05-30 05:35:42 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2013-05-30 05:35:42 +0200 |
commit | 62b3e928de2818a03b2dd04868815c888ee28c24 (patch) | |
tree | ec4ab1661b08945c4cb99844ceaeed4da4df035d /src/libsystemd-bus/bus-message.c | |
parent | 4f8d551ff0177df87fae6cb970471186a422d064 (diff) |
bus: update for kdbus changes
Diffstat (limited to 'src/libsystemd-bus/bus-message.c')
-rw-r--r-- | src/libsystemd-bus/bus-message.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libsystemd-bus/bus-message.c b/src/libsystemd-bus/bus-message.c index 6f2f3e9039..e6bf9db99a 100644 --- a/src/libsystemd-bus/bus-message.c +++ b/src/libsystemd-bus/bus-message.c @@ -125,8 +125,12 @@ static void message_free(sd_bus_message *m) { if (m->free_kdbus) free(m->kdbus); - if (m->release_kdbus) - ioctl(m->bus->input_fd, KDBUS_CMD_MSG_RELEASE, m->kdbus); + if (m->release_kdbus) { + uint64_t off; + + off = (uint8_t *)m->kdbus - (uint8_t *)m->bus->kdbus_buffer; + ioctl(m->bus->input_fd, KDBUS_CMD_MSG_RELEASE, &off); + } if (m->bus) sd_bus_unref(m->bus); |