mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Don't perform traceroute on timed-out targets. Fixes #410
This commit is contained in:
parent
bf82212b14
commit
e6614c0856
1 changed files with 4 additions and 2 deletions
|
|
@ -1518,8 +1518,10 @@ int traceroute(std::vector<Target *> &Targets) {
|
|||
for (target_iter = Targets.begin();
|
||||
target_iter != Targets.end();
|
||||
target_iter++) {
|
||||
if ((*target_iter)->ifType() == devt_loopback)
|
||||
; /* Ignore */
|
||||
Target *target = *target_iter;
|
||||
if (target->ifType() == devt_loopback
|
||||
|| target->timedOut(NULL))
|
||||
continue; /* Ignore */
|
||||
else if ((*target_iter)->directlyConnected())
|
||||
direct.push_back(*target_iter);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue