1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 12:41:29 +00:00

Fixed scanning the same IP multiple times with a type of scan that is now raw, incompleteHosts and completedHosts are now multisets instead of sets

This commit is contained in:
tudor
2016-10-15 22:26:43 +00:00
parent fbc9ddae92
commit 9c8a435bbf
3 changed files with 15 additions and 15 deletions

View File

@@ -738,11 +738,11 @@ public:
/* Any function which messes with (removes elements from)
incompleteHosts may have to manipulate nextI */
std::set<HostScanStats *, HssPredicate> incompleteHosts;
std::multiset<HostScanStats *, HssPredicate> incompleteHosts;
/* Hosts are moved from incompleteHosts to completedHosts as they are
completed. We keep them around because sometimes responses come back very
late, after we consider a host completed. */
std::set<HostScanStats *, HssPredicate> completedHosts;
std::multiset<HostScanStats *, HssPredicate> completedHosts;
/* How long (in msecs) we keep a host in completedHosts */
unsigned int completedHostLifetime;
/* The last time we went through completedHosts to remove hosts */
@@ -759,7 +759,7 @@ public:
private:
unsigned int numInitialTargets;
std::set<HostScanStats *>::iterator nextI;
std::multiset<HostScanStats *>::iterator nextI;
};