mirror of
https://github.com/nmap/nmap.git
synced 2026-01-23 14:49:02 +00:00
When a global ping times out, don't just destroy it, update timing too. Without
this, global pings never gave negative feedback, only positive feedback.
This commit is contained in:
@@ -4808,7 +4808,8 @@ static void processData(UltraScanInfo *USI) {
|
||||
&& TIMEVAL_SUBTRACT(USI->now, (*probeI)->sent) > (long) pinghost->probeTimeout()) {
|
||||
if (o.debugging)
|
||||
log_write(LOG_STDOUT, "Destroying timed-out global ping from %s.\n", pinghost->target->targetipstr());
|
||||
pinghost->destroyOutstandingProbe(probeI);
|
||||
/* ultrascan_ping_update destroys the probe. */
|
||||
ultrascan_ping_update(USI, pinghost, probeI, NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user