afsdb-fix-20080126
authorDerrick Brashear <shadow@dementia.org>
Mon, 28 Jan 2008 01:37:38 +0000 (01:37 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 28 Jan 2008 01:37:38 +0000 (01:37 +0000)
LICENSE IPL10

pull bugfix from 1.4

src/afs/afs_cell.c

index 754d12f..8bbf11c 100644 (file)
@@ -158,13 +158,12 @@ afs_GetCellHostsAFSDB(char *acellName)
        ObtainReadLock(&afsdb_req_lock);
     };
 
-    afs_osi_FreeStr(afsdb_req.cellname);
     ReleaseReadLock(&afsdb_req_lock);
     ReleaseWriteLock(&afsdb_client_lock);
 
-    if (afsdb_req.cellname) 
+    if (afsdb_req.cellname) {
        return 0;
-    else
+    } else
        return ENOENT;
 }
 #endif