]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-checkauth-unlock-before-return-20080228
authorKevin McBride <klm@endpoint.com>
Fri, 29 Feb 2008 04:46:20 +0000 (04:46 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 29 Feb 2008 04:46:20 +0000 (04:46 +0000)
LICENSE IPL10

only matters once you have pthreads, but...

(cherry picked from commit 8ffc274282fa40c6e2d35ba861b9dc932afa032d)

src/auth/userok.c

index f1e482b6a4cae312dc858c767fc5c147d61eb912..d76dc9602f057c4a2402d4e12d8b04c20a7657c3 100644 (file)
@@ -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) */