if (aservice) {
LOCK_GLOBAL_MUTEX
tservice = afsconf_FindService(aservice);
- UNLOCK_GLOBAL_MUTEX
+ UNLOCK_GLOBAL_MUTEX
if (tservice < 0) {
return AFSCONF_NOTFOUND; /* service not found */
}
LOCK_GLOBAL_MUTEX
code = afsconf_Check(adir);
- if (code)
+ if (code) {
+ UNLOCK_GLOBAL_MUTEX
return AFSCONF_FAILURE;
+ }
memcpy(astr, adir->keystr, sizeof(struct afsconf_keys));
UNLOCK_GLOBAL_MUTEX
return 0;
LOCK_GLOBAL_MUTEX
code = afsconf_Check(adir);
- if (code)
+ if (code) {
+ UNLOCK_GLOBAL_MUTEX
return AFSCONF_FAILURE;
+ }
maxa = adir->keystr->nkeys;
best = -1; /* highest kvno we've seen yet */
LOCK_GLOBAL_MUTEX
code = afsconf_Check(adir);
- if (code)
+ if (code) {
+ UNLOCK_GLOBAL_MUTEX
return AFSCONF_FAILURE;
+ }
maxa = adir->keystr->nkeys;
for(tk = adir->keystr->key,i=0;i<maxa;i++,tk++) {