[systemd-commits] src/core

Daniel Mack zonque at kemper.freedesktop.org
Mon Dec 22 07:52:32 PST 2014


 src/core/busname.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit e24e415e5f3af2fe86d2be9a1f1a2e8d5f8c96bf
Author: Daniel Mack <daniel at zonque.org>
Date:   Mon Dec 22 16:51:15 2014 +0100

    busname: fix CMD_FREE ioctl
    
    The KDBUS_CMD_FREE ioctl struct has a size field now, which needs to be set.

diff --git a/src/core/busname.c b/src/core/busname.c
index 838171f..acd6652 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;



More information about the systemd-commits mailing list