]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
pruclient-killer-fix-20060824
authorDerrick Brashear <shadow@dementia.org>
Thu, 24 Aug 2006 05:31:25 +0000 (05:31 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 24 Aug 2006 05:31:25 +0000 (05:31 +0000)
FIXES 37251

yeah, i should commit the fix this time. not my day

src/viced/host.c

index 43d9d3932831f95dbd01a842a93ca9b42727b548..ece9271f172b11d23a4030ea216ec0ded3fce0a7 100644 (file)
@@ -296,6 +296,7 @@ hpr_Initialize(struct ubik_client **uclient)
     if (code) {
        fprintf(stderr,
                "libprot: Could not get local cell. [%d]\n", code);
+       afsconf_Close(tdir);
        return code;
     }
     
@@ -303,14 +304,14 @@ hpr_Initialize(struct ubik_client **uclient)
     if (code) {
        fprintf(stderr, "libprot: Could not locate cell %s in %s/%s\n",
                cellstr, confDir, AFSDIR_CELLSERVDB_FILE);
+       afsconf_Close(tdir);
        return code;
     }
     
-    afsconf_Close(tdir);
-    
     code = rx_Init(0);
     if (code) {
         fprintf(stderr, "libprot:  Could not initialize rx.\n");
+       afsconf_Close(tdir);
         return code;
     }
     
@@ -374,7 +375,7 @@ hpr_Initialize(struct ubik_client **uclient)
     if (code) {
         com_err("fileserver", code, "ubik client init failed.");
     }
-
+    afsconf_Close(tdir);
     code = rxs_Release(sc[scIndex]);
     return code;
 }