From 7915302f28091dd0a6547f0f58fa5ceb581cc21a Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Thu, 1 May 2008 20:00:00 +0000 Subject: [PATCH] uuid-corrected-duplicate-check-20080501 LICENSE IPL10 apply check to chain, not input --- src/viced/host.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/viced/host.c b/src/viced/host.c index 969c4b2..28ba0e1 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -1157,7 +1157,8 @@ h_AddHostToUuidHashTable_r(struct afsUUID *uuid, struct host *host) /* don't add the same entry multiple times */ for (chain = hostUuidHashTable[index]; chain; chain = chain->next) { - if (host->interface && afs_uuid_equal(&host->interface->uuid, uuid)) + if (chain->hostPtr->interface && + afs_uuid_equal(&chain->hostPtr->interface->uuid, uuid)) return; } -- 1.9.4