]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3432: Crash logging FTP errors
authoryabuki <yabuki@sraoss.co.jp>
Sun, 27 Nov 2011 21:34:50 +0000 (14:34 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 27 Nov 2011 21:34:50 +0000 (14:34 -0700)
src/errorpage.cc

index c6afacb569108da416a1eb341cbec3a94677111e..a42ca60aad7a379b4a08daf027c7c8327ab6d4eb 100644 (file)
@@ -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");