summaryrefslogtreecommitdiff
path: root/nuttx/net/net_close.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-05-09 16:36:07 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-05-09 16:36:07 +0000
commit80450be87458da980b3f32c734a1c7f1287da8ad (patch)
treeb7a4e7e951cd1de1bc8e7c2d3a8858983d427e75 /nuttx/net/net_close.c
parent95bc39c643cb8e671248b9fee6941e729889ca74 (diff)
downloadpx4-nuttx-80450be87458da980b3f32c734a1c7f1287da8ad.tar.gz
px4-nuttx-80450be87458da980b3f32c734a1c7f1287da8ad.tar.bz2
px4-nuttx-80450be87458da980b3f32c734a1c7f1287da8ad.zip
Add LM3S6965 NSH configuration + Prep for 5.5 releasenuttx-5.5
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2659 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net/net_close.c')
-rw-r--r--nuttx/net/net_close.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/net/net_close.c b/nuttx/net/net_close.c
index 162006505..50421cb55 100644
--- a/nuttx/net/net_close.c
+++ b/nuttx/net/net_close.c
@@ -1,7 +1,7 @@
/****************************************************************************
* net/net_close.c
*
- * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007-2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -277,7 +277,8 @@ int net_closesocket(FAR struct socket *psock)
{
/* Yes... free the connection structure */
- uip_udpfree(psock->s_conn); /* Free uIP resources */
+ conn->crefs = 0; /* No more references on the connection */
+ uip_udpfree(psock->s_conn); /* Free uIP resources */
}
else
{