busname: fix CMD_FREE ioctl

The KDBUS_CMD_FREE ioctl struct has a size field now, which needs to be set.
This commit is contained in:
Daniel Mack
2014-12-22 16:51:15 +01:00
parent 540d858183
commit e24e415e5f
+3 -1
View File
@@ -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;