git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
502aca9
)
checkauth-unlock-before-return-20080228
author
Kevin McBride
<klm@endpoint.com>
Fri, 29 Feb 2008 04:41:50 +0000 (
04:41
+0000)
committer
Derrick Brashear
<shadow@dementia.org>
Fri, 29 Feb 2008 04:41:50 +0000 (
04:41
+0000)
LICENSE IPL10
only matters once you have pthreads, but...
src/auth/userok.c
patch
|
blob
|
history
diff --git
a/src/auth/userok.c
b/src/auth/userok.c
index
766ffe3
..
d1dc286
100644
(file)
--- 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) */