1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-24 00:19:01 +00:00

Bail out of Traceroute::trace() if no valid targets are available. If we were trying to traceroute a machine that's directly connected, the "Initiating"/"Completed" messages would still appear even though no tracing would be done.

This commit is contained in:
kris
2007-03-19 19:52:41 +00:00
parent d25970b353
commit e52e2c9f49

View File

@@ -814,6 +814,9 @@ Traceroute::trace (vector < Target * >&Targets) {
* legitimate to trace to */
sendTTLProbes (Targets, valid_targets);
if (!valid_targets.size())
return;
SPM = new ScanProgressMeter ("Traceroute");
while (!readTraceResponses ()) {