diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-02-09 07:14:28 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-02-09 07:14:28 +0000 |
commit | 8d169dfaddb995cfa594b8465dcdde5f35f40a60 (patch) | |
tree | e5aa9a766c27ce9a90121f61dad993d6dd3b4d3d /lib | |
parent | b12e334d83c0ad2a342eeb14c1cecf314915830f (diff) |
Added a failf() call in the error-check just added
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ftp.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |