]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-uuid-corrected-duplicate-check-20080501
authorDerrick Brashear <shadow@dementia.org>
Thu, 1 May 2008 20:00:20 +0000 (20:00 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 1 May 2008 20:00:20 +0000 (20:00 +0000)
LICENSE IPL10

apply check to chain, not input

(cherry picked from commit 7915302f28091dd0a6547f0f58fa5ceb581cc21a)

src/viced/host.c

index 029af25e285f035c0994590da29b9a7f3cae2d11..45fafdcd4e0a7a82710c835e7835ce835ca99167 100644 (file)
@@ -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;
     }