From 89987139db81a4dac8274fda7eff95a371497ae4 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 17 Apr 2012 22:55:09 +0000 Subject: [PATCH] Fix the check for duplicate addresses in target_needs_new_hostgroup. --- targets.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targets.cc b/targets.cc index b287209b7..694b0ad6f 100644 --- a/targets.cc +++ b/targets.cc @@ -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; }