From: yabuki Date: Fri, 2 Dec 2011 12:43:54 +0000 (-0700) Subject: Bug 3432: Crash logging FTP errors X-Git-Tag: SQUID_3_1_17~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3ed0b82eeea66f1b78ca8c6c63cc9db2f6af04e;p=thirdparty%2Fsquid.git Bug 3432: Crash logging FTP errors --- diff --git a/src/errorpage.cc b/src/errorpage.cc index 835b52d2f8..34800371b9 100644 --- a/src/errorpage.cc +++ b/src/errorpage.cc @@ -579,7 +579,7 @@ ErrorState::Dump(MemBuf * mb) if (ftp.request) { str.Printf("FTP Request: %s\r\n", ftp.request); - str.Printf("FTP Reply: %s\r\n", ftp.reply); + str.Printf("FTP Reply: %s\r\n", (ftp.reply? ftp.reply:"[none]")); str.Printf("FTP Msg: "); wordlistCat(ftp.server_msg, &str); str.Printf("\r\n");