mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 14:30:43 +00:00
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:
parent
b937541719
commit
e51ec88f74
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user