This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new f9b6255895 local_socket: remove the wrong assertion in local_listen()
f9b6255895 is described below

commit f9b6255895b3ed86dc5194cb7bc49fceb2754442
Author: ligd <liguidi...@xiaomi.com>
AuthorDate: Mon Feb 20 14:55:57 2023 +0800

    local_socket: remove the wrong assertion in local_listen()
    
    if 2 threads call local_alloc() time and then do local_listen()
    will meet this assertion
    
    Signed-off-by: ligd <liguidi...@xiaomi.com>
---
 net/local/local_listen.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/net/local/local_listen.c b/net/local/local_listen.c
index 605a778461..e468f512c8 100644
--- a/net/local/local_listen.c
+++ b/net/local/local_listen.c
@@ -111,10 +111,6 @@ int local_listen(FAR struct socket *psock, int backlog)
 
   if (server->lc_state == LOCAL_STATE_BOUND)
     {
-      /* The connection should not reside in any other list */
-
-      DEBUGASSERT(server->lc_conn.node.flink == NULL);
-
       /* And change the server state to listing */
 
       server->lc_state = LOCAL_STATE_LISTENING;

Reply via email to