From 477e5df71e5f6d659c7f8046b29c462fba189900 Mon Sep 17 00:00:00 2001 From: yabuki Date: Fri, 2 Dec 2011 01:13:44 -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 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"); -- 2.47.2