summaryrefslogtreecommitdiff
path: root/nuttx/net/accept.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/net/accept.c')
-rw-r--r--nuttx/net/accept.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/nuttx/net/accept.c b/nuttx/net/accept.c
index 28ea7e237..82d413d3f 100644
--- a/nuttx/net/accept.c
+++ b/nuttx/net/accept.c
@@ -158,10 +158,9 @@ static int accept_interrupt(struct uip_conn *listener, struct uip_conn *conn)
pstate->acpt_newconn = conn;
pstate->acpt_result = OK;
- /* Set a reference of one on the new connection */
+ /* There should be a reference of one on the new connection */
- DEBUGASSERT(conn->crefs == 0);
- conn->crefs = 1;
+ DEBUGASSERT(conn->crefs == 1);
/* Wake-up the waiting caller thread */