X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=mech_eap%2Faccept_sec_context.c;h=b089bae8b02256e672f5c61acc280324d421ba8e;hb=HEAD;hp=e503477eb7293033569ef4b5f294287800d9f95b;hpb=4b54c7cca6526a4f62c71ac311e84a571441ae62;p=mech_eap.orig diff --git a/mech_eap/accept_sec_context.c b/mech_eap/accept_sec_context.c index e503477..b089bae 100644 --- a/mech_eap/accept_sec_context.c +++ b/mech_eap/accept_sec_context.c @@ -867,7 +867,11 @@ gssEapAcceptSecContext(OM_uint32 *minor, cred = ctx->cred; } - GSSEAP_MUTEX_LOCK(&cred->mutex); + /* + * Previously we acquired the credential mutex here, but it should not be + * necessary as the acceptor does not access any mutable elements of the + * credential handle. + */ /* * Calling gssEapInquireCred() forces the default acceptor credential name @@ -923,9 +927,6 @@ gssEapAcceptSecContext(OM_uint32 *minor, GSSEAP_ASSERT(CTX_IS_ESTABLISHED(ctx) || major == GSS_S_CONTINUE_NEEDED); cleanup: - if (cred != GSS_C_NO_CREDENTIAL) - GSSEAP_MUTEX_UNLOCK(&cred->mutex); - return major; }