summaryrefslogtreecommitdiff
path: root/nuttx/net
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-18 22:21:20 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-18 22:21:20 +0000
commit7873ab1c30c52cdcd7a162af850c593ebee54e9f (patch)
treeec89fc6519ed2fc3b666a14f04aaa7a1ee8ae349 /nuttx/net
parent17e24472b5c11ce525810f7016c9c3b06b5df97c (diff)
downloadpx4-nuttx-7873ab1c30c52cdcd7a162af850c593ebee54e9f.tar.gz
px4-nuttx-7873ab1c30c52cdcd7a162af850c593ebee54e9f.tar.bz2
px4-nuttx-7873ab1c30c52cdcd7a162af850c593ebee54e9f.zip
Fixing LM3S httpd example (still broken)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2390 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net')
-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 */