diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |