diff --git a/scan_engine.cc b/scan_engine.cc index f56bb3413..ba3aaab96 100644 --- a/scan_engine.cc +++ b/scan_engine.cc @@ -1896,6 +1896,9 @@ HostScanStats *UltraScanInfo::findHost(struct sockaddr_storage *ss) { return NULL; } +/* Check if incompleteHosts list contains less than n elements. This function + is here to replace numIncompleteHosts() < n, which would have to walk + through the entire list. */ bool UltraScanInfo::numIncompleteHostsLessThan(unsigned int n) { std::list::iterator hostI; unsigned int count;