diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-24 22:03:02 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-24 22:03:02 +0000 |
commit | 37dacc8451d6670121a3f62879f040ebd4f64f25 (patch) | |
tree | 571820dda650b963fde2bf7a429a96cce79298cf | |
parent | 355447d7ad8ad01636f91b6b57d3de4edf38f6a9 (diff) | |
download | chromium_src-37dacc8451d6670121a3f62879f040ebd4f64f25.zip chromium_src-37dacc8451d6670121a3f62879f040ebd4f64f25.tar.gz chromium_src-37dacc8451d6670121a3f62879f040ebd4f64f25.tar.bz2 |
Return potentially more specific error code in FtpNetworkTransaction.
Review URL: http://codereview.chromium.org/147111
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19180 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | net/ftp/ftp_network_transaction.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ftp/ftp_network_transaction.cc b/net/ftp/ftp_network_transaction.cc index 6d2381d..b8acff5 100644 --- a/net/ftp/ftp_network_transaction.cc +++ b/net/ftp/ftp_network_transaction.cc @@ -64,11 +64,11 @@ int FtpNetworkTransaction::Start(const FtpRequestInfo* request_info, int FtpNetworkTransaction::Stop(int error) { if (command_sent_ == COMMAND_QUIT) - return ERR_FAILED; + return error; next_state_ = STATE_CTRL_WRITE_QUIT; last_error_ = error; - return error; + return OK; } int FtpNetworkTransaction::RestartWithAuth(const std::wstring& username, |