projects
/
libnss-afs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8c7b34c
)
remember to release mutex if we fail due to empty ThisCell
author
root
<adam@megacz.com>
Sat, 11 Jul 2009 23:24:48 +0000
(16:24 -0700)
committer
root
<adam@megacz.com>
Sat, 11 Jul 2009 23:24:48 +0000
(16:24 -0700)
nss_afs.c
patch
|
blob
|
history
diff --git
a/nss_afs.c
b/nss_afs.c
index
ff07a2f
..
7aec823
100644
(file)
--- a/
nss_afs.c
+++ b/
nss_afs.c
@@
-212,7
+212,7
@@
int init_afs() {
len = snprintf(cellname, MAXCELLNAMELEN,
"%s/ThisCell", AFSDIR_CLIENT_ETC_DIRPATH);
len = snprintf(cellname, MAXCELLNAMELEN,
"%s/ThisCell", AFSDIR_CLIENT_ETC_DIRPATH);
- if (len < 0 || len >= MAXCELLNAMELEN) return -1;
+ if (len < 0 || len >= MAXCELLNAMELEN) break;
thiscell=fopen(cellname,"r");
if (thiscell == NULL) break;
thiscell=fopen(cellname,"r");
if (thiscell == NULL) break;