aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index ed6f84958..c6f8b6191 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -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;
}