diff --git a/scan_engine.cc b/scan_engine.cc index 81266f5b6..38160d5e2 100644 --- a/scan_engine.cc +++ b/scan_engine.cc @@ -459,7 +459,6 @@ HostScanStats::HostScanStats(Target *t, UltraScanInfo *UltraSI) { lastping_sent_numprobes = 0; nxtpseq = 1; max_successful_tryno = 0; - tryno_mayincrease = true; ports_finished = 0; numprobes_sent = 0; memset(&completiontime, 0, sizeof(completiontime)); @@ -668,6 +667,7 @@ unsigned int HostScanStats::allowedTryno(bool *capped, bool *mayincrease) { std::list::iterator probeI; UltraProbe *probe = NULL; bool allfinished = true; + bool tryno_mayincrease = true; unsigned int maxval = 0; /* TODO: This should perhaps differ by scan type. */ diff --git a/scan_engine.h b/scan_engine.h index 8d7bff79c..df7339613 100644 --- a/scan_engine.h +++ b/scan_engine.h @@ -485,10 +485,6 @@ public: /* This is the highest try number that has produced useful results (such as port status change). */ unsigned int max_successful_tryno; - /* This starts as true because tryno may increase based on results, but - it becomes false if it becomes clear that tryno will not increase - further during the scan */ - bool tryno_mayincrease; int ports_finished; /* The number of ports of this host that have been determined */ int numprobes_sent; /* Number of port probes (not counting pings, but counting retransmits) sent to this host */ /* Boost the scan delay for this host, usually because too many packet