summaryrefslogtreecommitdiffstats
path: root/net/ftp/ftp_network_transaction.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/ftp/ftp_network_transaction.cc')
-rw-r--r--net/ftp/ftp_network_transaction.cc17
1 files changed, 4 insertions, 13 deletions
diff --git a/net/ftp/ftp_network_transaction.cc b/net/ftp/ftp_network_transaction.cc
index c939455..70ebde1 100644
--- a/net/ftp/ftp_network_transaction.cc
+++ b/net/ftp/ftp_network_transaction.cc
@@ -706,10 +706,9 @@ int FtpNetworkTransaction::ProcessResponseUSER(
next_state_ = STATE_CTRL_WRITE_PASS;
break;
case ERROR_CLASS_TRANSIENT_ERROR:
- if (response.status_code == 421)
- return Stop(ERR_FAILED);
- break;
+ return Stop(ERR_FAILED);
case ERROR_CLASS_PERMANENT_ERROR:
+ response_.needs_auth = true;
return Stop(ERR_FAILED);
default:
NOTREACHED();
@@ -739,18 +738,10 @@ int FtpNetworkTransaction::ProcessResponsePASS(
next_state_ = STATE_CTRL_WRITE_ACCT;
break;
case ERROR_CLASS_TRANSIENT_ERROR:
- if (response.status_code == 421) {
- // TODO(ibrar): Retry here.
- }
return Stop(ERR_FAILED);
case ERROR_CLASS_PERMANENT_ERROR:
- if (response.status_code == 503) {
- next_state_ = STATE_CTRL_WRITE_USER;
- } else {
- response_.needs_auth = true;
- return Stop(ERR_FAILED);
- }
- break;
+ response_.needs_auth = true;
+ return Stop(ERR_FAILED);
default:
NOTREACHED();
return Stop(ERR_UNEXPECTED);