From: Djalal Harouni Date: Tue, 14 Oct 2014 21:34:50 +0000 (+0100) Subject: connection: use KDBUS_HELLO_ACCEPT_MEMFD to check for passed memfds X-Git-Tag: upstream/0.20141102.012929utc~94 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c828a9c59bacb73cbc2a8f51a7d02ebc2da10220;p=platform%2Fcore%2Fsystem%2Fkdbus-bus.git connection: use KDBUS_HELLO_ACCEPT_MEMFD to check for passed memfds Signed-off-by: Djalal Harouni --- 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; }