зеркало из https://github.com/mozilla/gecko-dev.git
Fixes 84472, crash when going to unsupported ftp site. r=gagan, sr=darin, a=asa@mozilla.org
This commit is contained in:
Родитель
443b992bc1
Коммит
492ffa59e4
|
@ -1015,11 +1015,12 @@ nsFtpState::R_syst() {
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
NS_ASSERTION(0, "Guessing FTP server type.");
|
NS_ASSERTION(0, "Server type list format unrecognized.");
|
||||||
// No clue. We will just hope it is UNIX type server.
|
// Guessing causes crashes.
|
||||||
// An assertion here indicates that we should be testing
|
#if DEBUG
|
||||||
// for another substring
|
printf("Server listing unrecognized: %s \n", mResponseMsg.get());
|
||||||
mServerType = FTP_UNIX_TYPE;
|
#endif
|
||||||
|
return FTP_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
return FTP_S_TYPE;
|
return FTP_S_TYPE;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче