From: Daniel Stenberg Date: Thu, 8 Feb 2001 13:52:38 +0000 (+0000) Subject: today's FTP response check fix X-Git-Tag: upstream/7.37.1~17121 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7e36c4437e895db51efe92cbe0bb1fdd41981b23;p=platform%2Fupstream%2Fcurl.git today's FTP response check fix --- diff --git a/lib/ftp.c b/lib/ftp.c index a8ef166..ed6f849 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -282,7 +282,7 @@ int Curl_GetFTPResponse(int sockfd, char *buf, */ if(CURLE_OK != Curl_read(conn, sockfd, ptr, 1, &keepon)) keepon = FALSE; - else if(keepon < 0) + else if(keepon <= 0) error = SELECT_ERROR; else if ((*ptr == '\n') || (*ptr == '\r')) keepon = FALSE;