mirror of
https://github.com/curl/curl.git
synced 2026-05-15 09:46:21 +03:00
changed the return code checker in the quote command send to only fail
on >= 400 errors
This commit is contained in:
parent
2fff6a4b0e
commit
74d35416a2
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue