Skip to content
Snippets Groups Projects
Commit 8d169dfa authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Added a failf() call in the error-check just added

parent b12e334d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment