code = afsconf_GetLocalCell(tdir, cellstr, sizeof(cellstr));
if (code) {
- afsconf_Close(tdir);
fprintf(stderr,
"libprot: Could not get local cell. [%d]\n", code);
return code;
code = afsconf_GetCellInfo(tdir, cell, "afsprot", &info);
if (code) {
- afsconf_Close(tdir);
fprintf(stderr, "libprot: Could not locate cell %s in %s/%s\n",
cell, confDir, AFSDIR_CELLSERVDB_FILE);
return code;
* which case we will get one (and re-read the key file).
*/
if (pruclient && (lastLevel == secLevel) && (secLevel != 2)) {
- afsconf_Close(tdir);
return 0;
}
code = rx_Init(0);
if (code) {
- afsconf_Close(tdir);
fprintf(stderr, "libprot: Could not initialize rx.\n");
return code;
}
ttoken.ticket);
}
}
- afsconf_Close(tdir);
- tdir = NULL;
if (scIndex == 1)
return PRBADARG;