From: yabuki Date: Sun, 27 Nov 2011 21:34:50 +0000 (-0700) Subject: Bug 3432: Crash logging FTP errors X-Git-Tag: BumpSslServerFirst.take05~12^2~155 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a636cbbf7cfc3f4ab63042b1d3aef538e5140911;p=thirdparty%2Fsquid.git Bug 3432: Crash logging FTP errors --- diff --git a/src/errorpage.cc b/src/errorpage.cc index c6afacb569..a42ca60aad 100644 --- a/src/errorpage.cc +++ b/src/errorpage.cc @@ -779,7 +779,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");