connection: use KDBUS_HELLO_ACCEPT_MEMFD to check for passed memfds
authorDjalal Harouni <tixxdz@opendz.org>
Tue, 14 Oct 2014 21:34:50 +0000 (22:34 +0100)
committerDjalal Harouni <tixxdz@opendz.org>
Tue, 14 Oct 2014 21:34:50 +0000 (22:34 +0100)
Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
connection.c

index daa3340352c7659006eb0d927a087ac17fdb1077..bbc87b1aa73478fd6e0ee217bbc0cf843177d71c 100644 (file)
@@ -507,7 +507,7 @@ static int kdbus_conn_entry_insert(struct kdbus_conn *conn,
        }
 
        if ((kmsg->fds && !(conn->flags & KDBUS_HELLO_ACCEPT_FD)) ||
-           (kmsg->memfds_count && !(conn->flags & KDBUS_HELLO_ACCEPT_FD))) {
+           (kmsg->memfds_count && !(conn->flags & KDBUS_HELLO_ACCEPT_MEMFD))) {
                ret = -ECOMM;
                goto exit_unlock;
        }