From 077dfab8f45e3db119a3ac76ccd1685a9cac589a Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 19 Nov 2008 20:05:55 +0000 Subject: 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 --- nuttx/net/uip/uip-tcpcallback.c | 1 + 1 file changed, 1 insertion(+) (limited to 'nuttx/net') 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 -- cgit v1.2.3