diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-09-16 16:28:53 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-09-16 16:28:53 +0000 |
commit | 239d6285be5991ee44ab576bae32ed92dc206b7e (patch) | |
tree | fc41b1ab5ef67171a77ad9c0c0e0bfed19052351 /nuttx/net/uip | |
parent | a32bb91cd612f800784635b520c579168731c8d8 (diff) | |
download | px4-nuttx-239d6285be5991ee44ab576bae32ed92dc206b7e.tar.gz px4-nuttx-239d6285be5991ee44ab576bae32ed92dc206b7e.tar.bz2 px4-nuttx-239d6285be5991ee44ab576bae32ed92dc206b7e.zip |
Reference count must be zero before calling uip_tcpfree()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2065 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net/uip')
-rw-r--r-- | nuttx/net/uip/uip_tcpbacklog.c | 1 | ||||
-rw-r--r-- | nuttx/net/uip/uip_tcpinput.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/nuttx/net/uip/uip_tcpbacklog.c b/nuttx/net/uip/uip_tcpbacklog.c index 7e2b6ede4..0abfe3061 100644 --- a/nuttx/net/uip/uip_tcpbacklog.c +++ b/nuttx/net/uip/uip_tcpbacklog.c @@ -196,6 +196,7 @@ int uip_backlogdestroy(FAR struct uip_conn *conn) blconn->blparent = NULL; blconn->backlog = NULL; + blconn->crefs = 0; uip_tcpfree(blconn); } } diff --git a/nuttx/net/uip/uip_tcpinput.c b/nuttx/net/uip/uip_tcpinput.c index 5f0430ed2..e09cc6286 100644 --- a/nuttx/net/uip/uip_tcpinput.c +++ b/nuttx/net/uip/uip_tcpinput.c @@ -173,6 +173,7 @@ void uip_tcpinput(struct uip_driver_s *dev) { /* No, then we have to give the connection back */ + conn->crefs = 0; uip_tcpfree(conn); conn = NULL; } |