mirror of
https://github.com/moparisthebest/curl
synced 2024-11-11 03:55:03 -05:00
Added a failf() call in the error-check just added
This commit is contained in:
parent
b12e334d83
commit
8d169dfadd
@ -282,8 +282,10 @@ 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;
|
||||||
|
failf(data, "Connection aborted");
|
||||||
|
}
|
||||||
else if ((*ptr == '\n') || (*ptr == '\r'))
|
else if ((*ptr == '\n') || (*ptr == '\r'))
|
||||||
keepon = FALSE;
|
keepon = FALSE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user