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