mirror of
https://github.com/curl/curl.git
synced 2026-04-22 07:02:11 +03:00
today's FTP response check fix
This commit is contained in:
parent
3c7a80a275
commit
7e36c4437e
1 changed files with 1 additions and 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue