mirror of
https://github.com/nmap/nmap.git
synced 2025-12-16 12:49:02 +00:00
Fix a bug I just introduced in tracerotue.cc: I moved a loop
initialization into the loop header but messed it up so the loop variable wasn't initialized.
This commit is contained in:
@@ -543,7 +543,7 @@ Traceroute::sendTTLProbes(vector < Target * >&Targets, vector < Target * >&valid
|
|||||||
TraceGroup *tg = NULL;
|
TraceGroup *tg = NULL;
|
||||||
vector < Target * >::iterator it;
|
vector < Target * >::iterator it;
|
||||||
|
|
||||||
for (Targets.begin(); it != Targets.end(); ++it) {
|
for (it = Targets.begin(); it != Targets.end(); ++it) {
|
||||||
t = *it;
|
t = *it;
|
||||||
|
|
||||||
/* No point in tracing directly connected nodes */
|
/* No point in tracing directly connected nodes */
|
||||||
|
|||||||
Reference in New Issue
Block a user