From 735c767a712c1bd33d203cfdb6f0e2793f646c5f Mon Sep 17 00:00:00 2001 From: david Date: Mon, 21 Dec 2009 19:57:00 +0000 Subject: [PATCH] Set the reason_id to no-response when probes time out during ping scan. This was mistakenly removed in the merge from nmap-mem. --- scan_engine.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scan_engine.cc b/scan_engine.cc index acd0f78bd..98817890f 100644 --- a/scan_engine.cc +++ b/scan_engine.cc @@ -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