From c3ed0b82eeea66f1b78ca8c6c63cc9db2f6af04e Mon Sep 17 00:00:00 2001 From: yabuki Date: Fri, 2 Dec 2011 05:43:54 -0700 Subject: [PATCH] Bug 3432: Crash logging FTP errors --- src/errorpage.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.47.2