mirror of
https://github.com/apache/nuttx.git
synced 2026-10-12 08:40:20 +00:00
local: connect operation should jump self's connection
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
cd5ab80f2f
commit
390de249a0
1 changed files with 7 additions and 0 deletions
|
|
@ -269,6 +269,13 @@ int psock_local_connect(FAR struct socket *psock,
|
|||
net_lock();
|
||||
while ((conn = local_nextconn(conn)) != NULL)
|
||||
{
|
||||
/* Slef found, continue */
|
||||
|
||||
if (conn == psock->s_conn)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Handle according to the server connection type */
|
||||
|
||||
switch (conn->lc_type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue