changeset 2166:2df8da4ddf46

Fix calculation in __tcp_write_block - from Wolfgang Koebler
author gthomas
date Mon, 27 Mar 2006 13:08:51 +0000
parents fa277d078e96
children 27ecc11e99bd
files packages/redboot/current/ChangeLog packages/redboot/current/src/net/tcp.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/packages/redboot/current/ChangeLog
+++ b/packages/redboot/current/ChangeLog
@@ -1,3 +1,8 @@
+2006-03-27  Gary Thomas  <gary@mlbassoc.com>
+
+	* src/net/tcp.c (__tcp_write_block): Fix calculation of actual
+	total number of bytes sent (from Wolfgang Koebler)
+
 2006-02-25  Oliver Munz  <munz@speag.ch>
 	    Andrew Lunn  <andrew.lunn@ascom.ch>
 	
--- a/packages/redboot/current/src/net/tcp.c
+++ b/packages/redboot/current/src/net/tcp.c
@@ -868,6 +868,7 @@ int
         if (n > 0) {
             len -= n;
             buf += n;
+            total += n;
         }
         __tcp_poll();
     }