From e24e415e5f3af2fe86d2be9a1f1a2e8d5f8c96bf Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Mon, 22 Dec 2014 16:51:15 +0100 Subject: busname: fix CMD_FREE ioctl The KDBUS_CMD_FREE ioctl struct has a size field now, which needs to be set. --- src/core/busname.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-54-g00ecf