1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-11 20:15:03 -05:00

today's FTP response check fix

This commit is contained in:
Daniel Stenberg 2001-02-08 13:52:38 +00:00
parent 3c7a80a275
commit 7e36c4437e

View File

@ -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;