Fixes 84472, crash when going to unsupported ftp site. r=gagan, sr=darin, a=asa@mozilla.org

git-svn-id: svn://10.0.0.236/trunk@96842 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dougt%netscape.com 2001-06-11 05:45:02 +00:00
parent e3cf63270b
commit 223b0adb6e

View File

@ -1015,11 +1015,12 @@ nsFtpState::R_syst() {
}
else
{
NS_ASSERTION(0, "Guessing FTP server type.");
// No clue. We will just hope it is UNIX type server.
// An assertion here indicates that we should be testing
// for another substring
mServerType = FTP_UNIX_TYPE;
NS_ASSERTION(0, "Server type list format unrecognized.");
// Guessing causes crashes.
#if DEBUG
printf("Server listing unrecognized: %s \n", mResponseMsg.get());
#endif
return FTP_ERROR;
}
return FTP_S_TYPE;