mirror of
https://github.com/nmap/nmap.git
synced 2025-12-24 08:29:04 +00:00
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.
This commit is contained in:
2
nmap.cc
2
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. */
|
||||
|
||||
Reference in New Issue
Block a user