From: Derrick Brashear Date: Thu, 1 May 2008 20:00:20 +0000 (+0000) Subject: STABLE14-uuid-corrected-duplicate-check-20080501 X-Git-Tag: openafs-stable-1_4_8pre1~91 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=24034e149a06090731b79952f44436de47b1b255;p=packages%2Fo%2Fopenafs.git STABLE14-uuid-corrected-duplicate-check-20080501 LICENSE IPL10 apply check to chain, not input (cherry picked from commit 7915302f28091dd0a6547f0f58fa5ceb581cc21a) --- diff --git a/src/viced/host.c b/src/viced/host.c index 029af25e2..45fafdcd4 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -1133,7 +1133,8 @@ hashInsertUuid_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; }