mirror of
https://github.com/nmap/nmap.git
synced 2026-01-07 23:19:02 +00:00
Fix the check for duplicate addresses in target_needs_new_hostgroup.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user