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