diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-09-06 11:43:59 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-09-06 11:43:59 -0600 |
commit | 479fbfb6c4c17ae3520a4403fe68ea5939a74546 (patch) | |
tree | 2675df713d5a05027b428ffeab2abec3c08cc3ea | |
parent | a4f675cbc95abe88f0c2d8d83947e54e11ef26e2 (diff) | |
download | nuttx-479fbfb6c4c17ae3520a4403fe68ea5939a74546.tar.gz nuttx-479fbfb6c4c17ae3520a4403fe68ea5939a74546.tar.bz2 nuttx-479fbfb6c4c17ae3520a4403fe68ea5939a74546.zip |
Networking: Important bug fix. The backlog buffer pointer was not being incrmented so that only the first backlog buffer was getting added to the freelist. From Max Holtzberg
-rw-r--r-- | nuttx/ChangeLog | 3 | ||||
-rw-r--r-- | nuttx/net/uip/uip_tcpbacklog.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog index 7d8eb0d97..0f05087c5 100644 --- a/nuttx/ChangeLog +++ b/nuttx/ChangeLog @@ -5509,4 +5509,7 @@ original NSH configuration will be a simple platform for testing individual features; the demo configuration will be a more complex platform for demonstrating multiple interacting features (2013-9-6). + * net/uip/uip_tcpbacklog.c: Fix a major bug in the TCP/IP backlog + initialization: Only the first backlog buffer was getting added + to the free list. From Max Holtzberg (2013-9-6). diff --git a/nuttx/net/uip/uip_tcpbacklog.c b/nuttx/net/uip/uip_tcpbacklog.c index 7e2bcd59a..78b62d9e8 100644 --- a/nuttx/net/uip/uip_tcpbacklog.c +++ b/nuttx/net/uip/uip_tcpbacklog.c @@ -127,6 +127,7 @@ int uip_backlogcreate(FAR struct uip_conn *conn, int nblg) for (i = 0; i < nblg; i++) { sq_addfirst(&blc->bc_node, &bls->bl_free); + blc++; } } |