mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +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:
parent
d25970b353
commit
e52e2c9f49
1 changed files with 3 additions and 0 deletions
|
|
@ -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 ()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue