From: root Date: Sat, 11 Jul 2009 23:24:48 +0000 (-0700) Subject: remember to release mutex if we fail due to empty ThisCell X-Git-Tag: 1.10~2 X-Git-Url: https://git.hcoop.net/hcoop/debian/libnss-afs.git/commitdiff_plain/d27f5e534e3bbf994b415b15e1a0ac02764ece2e remember to release mutex if we fail due to empty ThisCell --- diff --git a/nss_afs.c b/nss_afs.c index ff07a2f..7aec823 100644 --- 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); - if (len < 0 || len >= MAXCELLNAMELEN) return -1; + if (len < 0 || len >= MAXCELLNAMELEN) break; thiscell=fopen(cellname,"r"); if (thiscell == NULL) break;