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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user