mirror of
https://github.com/nmap/nmap.git
synced 2026-09-08 03:20:08 +00:00
Erase by key
This commit is contained in:
parent
1bb2703c51
commit
22ee545f7e
1 changed files with 2 additions and 6 deletions
|
|
@ -527,9 +527,7 @@ static int deal_with_timedout_reads() {
|
|||
servI->capacity = (int) (servI->capacity * CAPACITY_MINOR_DOWN_SCALE);
|
||||
check_capacities(&*servI);
|
||||
servI->in_process.erase(reqI);
|
||||
std::map<u16, info>::iterator it = records.find(tpreq->id);
|
||||
if ( it != records.end() )
|
||||
records.erase(it);
|
||||
records.erase(tpreq->id);
|
||||
servI->reqs_on_wire--;
|
||||
|
||||
// If we've tried this server enough times, move to the next one
|
||||
|
|
@ -558,9 +556,7 @@ static int deal_with_timedout_reads() {
|
|||
output_summary();
|
||||
stat_dropped++;
|
||||
total_reqs--;
|
||||
infoI = records.find(tpreq->id);
|
||||
if ( infoI != records.end() )
|
||||
records.erase(infoI);
|
||||
records.erase(tpreq->id);
|
||||
delete tpreq;
|
||||
|
||||
// **** OR We start at the back of this server's queue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue