nuttx/net: fixed bind can not return error when used same addr.

Signed-off-by: zhushiqi <hiccupzhu@gmail.com>
This commit is contained in:
zhushiqi
2024-04-18 18:40:47 +08:00
committed by Xiang Xiao
parent 73b15a87dc
commit d029e88472
2 changed files with 1 additions and 1 deletions
-1
View File
@@ -61,7 +61,6 @@ int psock_local_bind(FAR struct socket *psock,
/* Save the address family */
conn->lc_proto = psock->s_type;
conn->lc_instance_id = -1;
/* Now determine the type of the Unix domain socket by comparing the size
+1
View File
@@ -138,6 +138,7 @@ static int local_sockif_alloc(FAR struct socket *psock)
/* Save the pre-allocated connection in the socket structure */
conn->lc_proto = psock->s_type;
psock->s_conn = conn;
return OK;
}