mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 21:21:31 +00:00
Fix a double-free and cache problem in nmap_dns
This commit is contained in:
@@ -377,7 +377,7 @@ public:
|
|||||||
HostElem::isTimeToClean);
|
HostElem::isTimeToClean);
|
||||||
while ( it != hosts_storage[i].end() )
|
while ( it != hosts_storage[i].end() )
|
||||||
{
|
{
|
||||||
hosts_storage[i].erase(it);
|
it = hosts_storage[i].erase(it);
|
||||||
assert(elements_count > 0);
|
assert(elements_count > 0);
|
||||||
--elements_count;
|
--elements_count;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user