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

apply check to chain, not input

src/viced/host.c

index 969c4b2..28ba0e1 100644 (file)
@@ -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;
     }