mirror of
https://github.com/nmap/nmap.git
synced 2026-09-21 07:38:39 +00:00
Fix bug in parallel DNS: out-of-bounds read in timeouts
This commit is contained in:
parent
3d36f2b005
commit
47ee5c2923
1 changed files with 2 additions and 0 deletions
|
|
@ -601,6 +601,8 @@ static int deal_with_timedout_reads(bool adjust_timing) {
|
|||
else {
|
||||
may_increase = false;
|
||||
tpreq->tries++;
|
||||
if (tpreq->tries > MAX_DNS_TRIES)
|
||||
tpreq->tries = MAX_DNS_TRIES;
|
||||
servI->in_process.erase(reqI);
|
||||
records.erase(tpreq->id);
|
||||
servI->reqs_on_wire--;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue