1
0
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:
david
2009-11-16 04:08:58 +00:00
parent 1178943eaa
commit 2ccb1144da

View File

@@ -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());
}