diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-06-19 06:04:21 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-06-19 06:04:21 +0000 |
commit | b1bbaebb17d3fb0a797d1982f053d4abac8918de (patch) | |
tree | 1fd9a30b23ca42cc17df6cd0e9c20c8027558e4c | |
parent | 8f6997cbde8957fed281adca2bc483ae4e257e3d (diff) |
better treatment of truly aborted transfers
-rw-r--r-- | lib/ftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } } |