From 492ffa59e410d56ee51f89fd7dc2da367612f59c Mon Sep 17 00:00:00 2001 From: "dougt%netscape.com" Date: Mon, 11 Jun 2001 05:45:02 +0000 Subject: [PATCH] Fixes 84472, crash when going to unsupported ftp site. r=gagan, sr=darin, a=asa@mozilla.org --- netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp b/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp index 62364db30992..b0f0ae26adce 100644 --- a/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp +++ b/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp @@ -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;