DEVEL15-uuid-corrected-duplicate-check-20080501
authorDerrick Brashear <shadow@dementia.org>
Thu, 1 May 2008 20:00:10 +0000 (20:00 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 1 May 2008 20:00:10 +0000 (20:00 +0000)
LICENSE IPL10

apply check to chain, not input

(cherry picked from commit 7915302f28091dd0a6547f0f58fa5ceb581cc21a)

src/viced/host.c

index 03c9f95..031ee86 100644 (file)
@@ -1156,7 +1156,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;
     }