diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-19 20:05:55 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-19 20:05:55 +0000 |
commit | 077dfab8f45e3db119a3ac76ccd1685a9cac589a (patch) | |
tree | b6c714ea9154719ba86dba6a47f454b490a6604a /nuttx/net | |
parent | d8c1d769c45dde09573ea6ba3f968491cc5e68b2 (diff) | |
download | px4-nuttx-077dfab8f45e3db119a3ac76ccd1685a9cac589a.tar.gz px4-nuttx-077dfab8f45e3db119a3ac76ccd1685a9cac589a.tar.bz2 px4-nuttx-077dfab8f45e3db119a3ac76ccd1685a9cac589a.zip |
Corrected a bug in the buffering of TCP data
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1289 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net')
-rw-r--r-- | nuttx/net/uip/uip-tcpcallback.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nuttx/net/uip/uip-tcpcallback.c b/nuttx/net/uip/uip-tcpcallback.c index b99e41f9f..71a2696d9 100644 --- a/nuttx/net/uip/uip-tcpcallback.c +++ b/nuttx/net/uip/uip-tcpcallback.c @@ -172,6 +172,7 @@ uip_dataevent(struct uip_driver_s *dev, struct uip_conn *conn, uint16 flags) if (readahead2) { + readahead2->rh_nbytes = 0; (void)uip_readahead(readahead2, buf, buflen); /* Save the readahead buffer in the connection structure where |