(gss_add_cred): avoid deadlock

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16347 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-12-05 09:20:32 +00:00
parent 0c372958f3
commit afe55cba30
2 changed files with 4 additions and 2 deletions

View File

@@ -207,6 +207,8 @@ OM_uint32 gss_add_cred (
goto failure;
}
HEIMDAL_MUTEX_unlock(&cred->cred_id_mutex);
ret = gss_inquire_cred(minor_status, cred, NULL, &lifetime,
NULL, actual_mechs);
if (ret)
@@ -219,7 +221,6 @@ OM_uint32 gss_add_cred (
if (output_cred_handle) {
*output_cred_handle = handle;
HEIMDAL_MUTEX_unlock(&cred->cred_id_mutex);
}
*minor_status = 0;