From c828a9c59bacb73cbc2a8f51a7d02ebc2da10220 Mon Sep 17 00:00:00 2001 From: Djalal Harouni Date: Tue, 14 Oct 2014 22:34:50 +0100 Subject: [PATCH] connection: use KDBUS_HELLO_ACCEPT_MEMFD to check for passed memfds Signed-off-by: Djalal Harouni --- connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connection.c b/connection.c index daa3340..bbc87b1 100644 --- a/connection.c +++ b/connection.c @@ -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; } -- 2.34.1