From 2a5750baef91f5ebc837ea20c912341b3d46c44c Mon Sep 17 00:00:00 2001 From: fyodor Date: Wed, 10 Jun 2009 01:56:46 +0000 Subject: [PATCH] Apply 1-line fix from Jah which now properly counts traceroute ping scan IPs (previously it would say things like 'WARNING: No targets were specified, so 0 hosts scanned.' and 'Nmap done: 0 IP addresses (1 host up) scanned' --- nmap.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/nmap.cc b/nmap.cc index 42de28beb..4b7d3fede 100644 --- a/nmap.cc +++ b/nmap.cc @@ -1817,6 +1817,7 @@ int nmap_main(int argc, char *argv[]) { * trace is first */ while(!Targets.empty()) { currenths = *Targets.begin(); + o.numhosts_scanned++; log_write(LOG_XML, ""); write_host_status(currenths, o.resolve_all); printmacinfo(currenths);