mirror of
https://github.com/nmap/nmap.git
synced 2026-06-25 18:48:19 +00:00
Fix the check for duplicate addresses in target_needs_new_hostgroup.
This commit is contained in:
parent
bdbea7be62
commit
89987139db
1 changed files with 1 additions and 1 deletions
|
|
@ -301,7 +301,7 @@ static bool target_needs_new_hostgroup(const HostGroupState *hs, const Target *t
|
|||
replies. What happens is one target gets the replies for all probes
|
||||
referring to the same IP address. */
|
||||
for (i = 0; i < hs->current_batch_sz; i++) {
|
||||
if (sockaddr_storage_cmp(hs->hostbatch[0]->TargetSockAddr(), target->TargetSockAddr()) == 0)
|
||||
if (sockaddr_storage_cmp(hs->hostbatch[i]->TargetSockAddr(), target->TargetSockAddr()) == 0)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue