From: Derrick Brashear Date: Thu, 1 May 2008 20:00:00 +0000 (+0000) Subject: uuid-corrected-duplicate-check-20080501 X-Git-Tag: openafs-devel-1_5_61~1098 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=7915302f28091dd0a6547f0f58fa5ceb581cc21a;p=packages%2Fo%2Fopenafs.git uuid-corrected-duplicate-check-20080501 LICENSE IPL10 apply check to chain, not input --- diff --git a/src/viced/host.c b/src/viced/host.c index 969c4b2f4..28ba0e1b5 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; }