From b0d553a068cdd8857eb573534ff4289b28d1dafa Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Thu, 17 Mar 2022 16:41:56 +0800 Subject: [PATCH] net/local: correct the socket flags from client socket socket flags from connect() should used from client Signed-off-by: chao.an --- net/local/local_connect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/local/local_connect.c b/net/local/local_connect.c index 7153374930..37181ddd30 100644 --- a/net/local/local_connect.c +++ b/net/local/local_connect.c @@ -311,8 +311,8 @@ int psock_local_connect(FAR struct socket *psock, if (conn->lc_proto == SOCK_STREAM) { ret = - local_stream_connect( - client, conn, _SS_ISNONBLOCK(conn->lc_conn.s_flags)); + local_stream_connect(client, conn, + _SS_ISNONBLOCK(client->lc_conn.s_flags)); } net_unlock();