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:
parent
807304f283
commit
b0d553a068
@ -311,8 +311,8 @@ int psock_local_connect(FAR struct socket *psock,
|
|||||||
if (conn->lc_proto == SOCK_STREAM)
|
if (conn->lc_proto == SOCK_STREAM)
|
||||||
{
|
{
|
||||||
ret =
|
ret =
|
||||||
local_stream_connect(
|
local_stream_connect(client, conn,
|
||||||
client, conn, _SS_ISNONBLOCK(conn->lc_conn.s_flags));
|
_SS_ISNONBLOCK(client->lc_conn.s_flags));
|
||||||
}
|
}
|
||||||
|
|
||||||
net_unlock();
|
net_unlock();
|
||||||
|
Loading…
Reference in New Issue
Block a user