From: Kevin McBride Date: Fri, 29 Feb 2008 04:41:50 +0000 (+0000) Subject: checkauth-unlock-before-return-20080228 X-Git-Tag: BP-openafs-windows-kdfs-ifs~65 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=8ffc274282fa40c6e2d35ba861b9dc932afa032d;p=packages%2Fo%2Fopenafs.git checkauth-unlock-before-return-20080228 LICENSE IPL10 only matters once you have pthreads, but... --- diff --git a/src/auth/userok.c b/src/auth/userok.c index 766ffe34b..d1dc28654 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) */