From 99a37f8aa160ed261a2bda3cee38445f5caa00c2 Mon Sep 17 00:00:00 2001 From: jah Date: Tue, 22 May 2012 20:46:57 +0000 Subject: [PATCH] The greppable output was missing a new line character at the end of per host info lines when --host-timeout was used and the host timed-out (after something was received from that host). This issue was reported by Matthew Morgan. --- nmap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmap.cc b/nmap.cc index 06fbe9ff2..f3c3bf15b 100644 --- a/nmap.cc +++ b/nmap.cc @@ -1988,7 +1988,7 @@ int nmap_main(int argc, char *argv[]) { xml_newline(); log_write(LOG_PLAIN,"Skipping host %s due to host timeout\n", currenths->NameIP(hostname, sizeof(hostname))); - log_write(LOG_MACHINE,"Host: %s (%s)\tStatus: Timeout", + log_write(LOG_MACHINE,"Host: %s (%s)\tStatus: Timeout\n", currenths->targetipstr(), currenths->HostName()); } else { /* --open means don't show any hosts without open ports. */