fixes bug 96761 - prevents connection problems detected during RETR from continuing into CWD state. r=gagan. sr=darin. a=asa

This commit is contained in:
dougt%netscape.com 2001-08-28 18:24:16 +00:00
parent b937541719
commit e51ec88f74

View File

@ -1271,6 +1271,11 @@ nsFtpState::R_retr() {
if (mResponseCode/100 == 1)
return FTP_READ_BUF;
// These error codes are related to problems with the connection.
// If we encounter any at this point, do not try CWD and abort.
if (mResponseCode == 421 || mResponseCode == 425 || mResponseCode == 426)
return FTP_ERROR;
return FTP_S_CWD;
}