mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -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))
|
||||
keepon = FALSE;
|
||||
else if(keepon <= 0)
|
||||
else if(keepon <= 0) {
|
||||
error = SELECT_ERROR;
|
||||
failf(data, "Connection aborted");
|
||||
}
|
||||
else if ((*ptr == '\n') || (*ptr == '\r'))
|
||||
keepon = FALSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user