From 80450be87458da980b3f32c734a1c7f1287da8ad Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 9 May 2010 16:36:07 +0000 Subject: Add LM3S6965 NSH configuration + Prep for 5.5 release git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2659 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/net/net_close.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'nuttx/net/net_close.c') 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 * * 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 { -- cgit v1.2.3