net/local: correct the socket flags from client socket

socket flags from connect() should used from client

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2022-03-17 16:41:56 +08:00 committed by Xiang Xiao
parent 807304f283
commit b0d553a068
1 changed files with 2 additions and 2 deletions

View File

@ -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();