projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b12e334
)
Added a failf() call in the error-check just added
author
Daniel Stenberg
<daniel@haxx.se>
Fri, 9 Feb 2001 07:14:28 +0000
(07:14 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Fri, 9 Feb 2001 07:14:28 +0000
(07:14 +0000)
lib/ftp.c
patch
|
blob
|
history
diff --git
a/lib/ftp.c
b/lib/ftp.c
index
ed6f849
..
c6f8b61
100644
(file)
--- 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;
}