From 7873ab1c30c52cdcd7a162af850c593ebee54e9f Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 18 Dec 2009 22:21:20 +0000 Subject: Fixing LM3S httpd example (still broken) git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2390 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/net/accept.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'nuttx/net') 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 */ -- cgit v1.2.3