From: Kevin McBride Date: Fri, 29 Feb 2008 04:46:20 +0000 (+0000) Subject: STABLE14-checkauth-unlock-before-return-20080228 X-Git-Tag: openafs-stable-1_4_7pre1~22 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=72508c957533e673b2b143d2ffa07c9d6f0df848;p=packages%2Fo%2Fopenafs.git STABLE14-checkauth-unlock-before-return-20080228 LICENSE IPL10 only matters once you have pthreads, but... (cherry picked from commit 8ffc274282fa40c6e2d35ba861b9dc932afa032d) --- diff --git a/src/auth/userok.c b/src/auth/userok.c index f1e482b6a..d76dc9602 100644 --- a/src/auth/userok.c +++ b/src/auth/userok.c @@ -51,9 +51,11 @@ int afsconf_CheckAuth(register struct afsconf_dir *adir, register struct rx_call *acall) { + int rc; LOCK_GLOBAL_MUTEX; - return ((afsconf_SuperUser(adir, acall, NULL) == 0) ? 10029 : 0); + rc = ((afsconf_SuperUser(adir, acall, NULL) == 0) ? 10029 : 0); UNLOCK_GLOBAL_MUTEX; + return rc; } #endif /* !defined(UKERNEL) */