diff --git a/nmap_dns.cc b/nmap_dns.cc index f5ecbc3fa..90a337ed1 100644 --- a/nmap_dns.cc +++ b/nmap_dns.cc @@ -377,7 +377,7 @@ public: HostElem::isTimeToClean); while ( it != hosts_storage[i].end() ) { - hosts_storage[i].erase(it); + it = hosts_storage[i].erase(it); assert(elements_count > 0); --elements_count; }