aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-12-16 10:36:08 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-12-16 10:36:08 +0000
commit74d35416a2ee4d0baa84e2b5daab2fc96dda5a58 (patch)
tree358cdc3ef63789bc023f6e81c1e2a6bf44b4f465
parent2fff6a4b0e53d7154d40c1de5ee57b3ab9935857 (diff)
changed the return code checker in the quote command send to only fail
on >= 400 errors
-rw-r--r--lib/ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 1d7b9c284..705d090c8 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -535,7 +535,7 @@ CURLcode ftp_done(struct connectdata *conn)
if(nread < 0)
return CURLE_OPERATION_TIMEOUTED;
- if (buf[0] != '2') {
+ if (ftpcode >= 400) {
failf(data, "QUOT string not accepted: %s",
qitem->data);
return CURLE_FTP_QUOTE_ERROR;
@@ -589,7 +589,7 @@ CURLcode _ftp(struct connectdata *conn)
if(nread < 0)
return CURLE_OPERATION_TIMEOUTED;
- if (buf[0] != '2') {
+ if (ftpcode >= 400) {
failf(data, "QUOT string not accepted: %s",
qitem->data);
return CURLE_FTP_QUOTE_ERROR;