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:
8f6997c
)
better treatment of truly aborted transfers
author
Daniel Stenberg
<daniel@haxx.se>
Tue, 19 Jun 2001 06:04:21 +0000
(06:04 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Tue, 19 Jun 2001 06:04:21 +0000
(06:04 +0000)
lib/ftp.c
patch
|
blob
|
history
diff --git
a/lib/ftp.c
b/lib/ftp.c
index ed89ab01dddf7cb04e1876ea0be9f38fed730473..e77298228d4cbdbd2ba83af1d93b1ab361c8a673 100644
(file)
--- a/
lib/ftp.c
+++ b/
lib/ftp.c
@@
-172,7
+172,7
@@
int Curl_GetFTPResponse(int sockfd,
fd_set readfd;
struct UrlData *data = conn->data;
char *line_start;
- int code
;
+ int code
=0; /* default "error code" to return */
#define SELECT_OK 0
#define SELECT_ERROR 1
@@
-680,7
+680,7
@@
CURLcode Curl_ftp_done(struct connectdata *conn)
/* 226 Transfer complete, 250 Requested file action okay, completed. */
if((ftpcode != 226) && (ftpcode != 250)) {
- failf(data, "
%s", buf+4
);
+ failf(data, "
server did not report OK, got %d", ftpcode
);
return CURLE_FTP_WRITE_ERROR;
}
}