summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/ftp/ftp_network_transaction.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/ftp/ftp_network_transaction.cc b/net/ftp/ftp_network_transaction.cc
index 098cbd0..248b716 100644
--- a/net/ftp/ftp_network_transaction.cc
+++ b/net/ftp/ftp_network_transaction.cc
@@ -239,6 +239,7 @@ int FtpNetworkTransaction::DoLoop(int result) {
rv = DoCtrlConnectComplete(rv);
break;
case STATE_CTRL_READ:
+ DCHECK(rv == OK);
rv = DoCtrlRead();
break;
case STATE_CTRL_READ_COMPLETE:
@@ -281,19 +282,24 @@ int FtpNetworkTransaction::DoLoop(int result) {
rv = DoCtrlWriteSIZE();
break;
case STATE_CTRL_WRITE_CWD:
+ DCHECK(rv == OK);
rv = DoCtrlWriteCWD();
break;
case STATE_CTRL_WRITE_LIST:
+ DCHECK(rv == OK);
rv = DoCtrlWriteLIST();
break;
case STATE_CTRL_WRITE_MDTM:
+ DCHECK(rv == OK);
rv = DoCtrlWriteMDTM();
break;
case STATE_CTRL_WRITE_QUIT:
+ DCHECK(rv == OK);
rv = DoCtrlWriteQUIT();
break;
case STATE_DATA_RESOLVE_HOST:
+ DCHECK(rv == OK);
rv = DoDataResolveHost();
break;
case STATE_DATA_RESOLVE_HOST_COMPLETE:
@@ -307,6 +313,7 @@ int FtpNetworkTransaction::DoLoop(int result) {
rv = DoDataConnectComplete(rv);
break;
case STATE_DATA_READ:
+ DCHECK(rv == OK);
rv = DoDataRead();
break;
case STATE_DATA_READ_COMPLETE: