1
0
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:
david
2009-01-03 22:15:06 +00:00
parent 6998d72ccc
commit da0b2c98c8

View File

@@ -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);
}
}
}