From: wessels <> Date: Tue, 17 Mar 1998 01:21:41 +0000 (+0000) Subject: ftp size bug again X-Git-Tag: SQUID_3_0_PRE1~3838 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48451fb1560cf7495d64ec59790028ef6f3a2b7f;p=thirdparty%2Fsquid.git ftp size bug again --- diff --git a/src/ftp.cc b/src/ftp.cc index cb96f3355a..1c1b9ca9c7 100644 --- a/src/ftp.cc +++ b/src/ftp.cc @@ -1,6 +1,6 @@ /* - * $Id: ftp.cc,v 1.206 1998/03/15 17:19:57 wessels Exp $ + * $Id: ftp.cc,v 1.207 1998/03/16 18:21:41 wessels Exp $ * * DEBUG: section 9 File Transfer Protocol (FTP) * AUTHOR: Harvest Derived @@ -818,7 +818,7 @@ ftpDataRead(int fd, void *data) assert(ftpState->data.offset == 0); storeAppend(entry, ftpState->data.buf, len); } - if (ftpState->size && mem->inmem_hi >= ftpState->size + mem->reply->hdr_sz) + if (ftpState->size > 0 && mem->inmem_hi >= ftpState->size + mem->reply->hdr_sz) ftpReadComplete(ftpState); else commSetSelect(fd,