1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-16 04:39:03 +00:00

Set the reason_id to no-response when probes time out during ping scan.

This was mistakenly removed in the merge from nmap-mem.
This commit is contained in:
david
2009-12-21 19:57:00 +00:00
parent a1566e895f
commit 735c767a71

View File

@@ -5010,6 +5010,8 @@ static void processData(UltraScanInfo *USI) {
}
if (USI->ping_scan) {
ultrascan_host_probe_update(USI, host, probeI, HOST_DOWN, NULL);
if (host->target->reason.reason_id == ER_UNKNOWN)
host->target->reason.reason_id = ER_NORESPONSE;
} else {
/* No ultrascan_port_probe_update because that allocates a Port
object; the default port state as set by setDefaultPortState