diff options
author | Daniel Mack <daniel@zonque.org> | 2014-12-22 16:51:15 +0100 |
---|---|---|
committer | Daniel Mack <daniel@zonque.org> | 2014-12-22 16:51:15 +0100 |
commit | e24e415e5f3af2fe86d2be9a1f1a2e8d5f8c96bf (patch) | |
tree | 42cac1d04136642b501cec4f00a91eaa91486df9 /src/core/busname.c | |
parent | 540d8581834442ca1c8f79fa35e4b91c0ab51567 (diff) |
busname: fix CMD_FREE ioctl
The KDBUS_CMD_FREE ioctl struct has a size field now, which needs to be set.
Diffstat (limited to 'src/core/busname.c')
-rw-r--r-- | src/core/busname.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/busname.c b/src/core/busname.c index 838171fe23..acd665282d 100644 --- a/src/core/busname.c +++ b/src/core/busname.c @@ -730,7 +730,9 @@ static int busname_peek_message(BusName *n) { .size = sizeof(cmd_recv), .flags = KDBUS_RECV_PEEK, }; - struct kdbus_cmd_free cmd_free = {}; + struct kdbus_cmd_free cmd_free = { + .size = sizeof(cmd_free), + }; const char *comm = NULL; struct kdbus_item *d; struct kdbus_msg *k; |