projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5302bd
)
lock creds in right spot in accept_sec_context
author
Luke Howard
<lukeh@padl.com>
Wed, 29 Sep 2010 13:09:20 +0000
(15:09 +0200)
committer
Luke Howard
<lukeh@padl.com>
Wed, 29 Sep 2010 13:09:20 +0000
(15:09 +0200)
accept_sec_context.c
patch
|
blob
|
history
diff --git
a/accept_sec_context.c
b/accept_sec_context.c
index
184109c
..
8b98484
100644
(file)
--- a/
accept_sec_context.c
+++ b/
accept_sec_context.c
@@
-521,11
+521,12
@@
gss_accept_sec_context(OM_uint32 *minor,
/* Validate and lock credentials */
if (cred != GSS_C_NO_CREDENTIAL) {
+ GSSEAP_MUTEX_LOCK(&cred->mutex);
+
if ((cred->flags & CRED_FLAG_ACCEPT) == 0) {
major = GSS_S_NO_CRED;
goto cleanup;
}
- GSSEAP_MUTEX_LOCK(&cred->mutex);
}
sm = &eapGssAcceptorSm[ctx->state];