From 2ccb1144da25ee0d1df3e2775368ed7490bc4a11 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 16 Nov 2009 04:08:58 +0000 Subject: [PATCH] Remove a conditional that printed the "Host is down" line to either LOG_PLAIN or LOG_STDOUT depending on whether o.resolve_all was set, and just always print to LOG_PLAIN like we do all the other output. This was the cause of a discrepancy between interactive and normal output reported at http://seclists.org/nmap-dev/2009/q4/230. --- output.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output.cc b/output.cc index 4772c724e..d148d8a98 100644 --- a/output.cc +++ b/output.cc @@ -1489,7 +1489,7 @@ void write_host_status(Target * currenths, int resolve_all) { log_write(LOG_MACHINE, "Host: %s (%s)\tStatus: Up\n", currenths->targetipstr(), currenths->HostName()); } else if (o.verbose || resolve_all) { - log_write(resolve_all ? LOG_PLAIN : LOG_STDOUT, "Host is down.\n"); + log_write(LOG_PLAIN, "Host is down.\n"); log_write(LOG_MACHINE, "Host: %s (%s)\tStatus: Down\n", currenths->targetipstr(), currenths->HostName()); }