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:
parent
3c7a80a275
commit
7e36c4437e
@ -282,7 +282,7 @@ int Curl_GetFTPResponse(int sockfd, char *buf,
|
|||||||
*/
|
*/
|
||||||
if(CURLE_OK != Curl_read(conn, sockfd, ptr, 1, &keepon))
|
if(CURLE_OK != Curl_read(conn, sockfd, ptr, 1, &keepon))
|
||||||
keepon = FALSE;
|
keepon = FALSE;
|
||||||
else if(keepon < 0)
|
else if(keepon <= 0)
|
||||||
error = SELECT_ERROR;
|
error = SELECT_ERROR;
|
||||||
else if ((*ptr == '\n') || (*ptr == '\r'))
|
else if ((*ptr == '\n') || (*ptr == '\r'))
|
||||||
keepon = FALSE;
|
keepon = FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user