From: Tom Yu Date: Wed, 16 Jul 2008 23:01:43 +0000 (+0000) Subject: Fix indirection on assignment to minor status X-Git-Tag: krb5-1.7-alpha1~593 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=93a8480b19227479709f86683f43418318b7aa20;p=krb5.git Fix indirection on assignment to minor status ticket: 5962 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20530 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/gssapi/mechglue/g_initialize.c b/src/lib/gssapi/mechglue/g_initialize.c index 5fbe26fcf..518eeede4 100644 --- a/src/lib/gssapi/mechglue/g_initialize.c +++ b/src/lib/gssapi/mechglue/g_initialize.c @@ -101,8 +101,8 @@ gss_OID *oid; *minor_status = 0; - minor_status = k5_mutex_lock(&g_mechListLock); - if (minor_status) + *minor_status = k5_mutex_lock(&g_mechListLock); + if (*minor_status) return GSS_S_FAILURE; aMech = g_mechList; while (aMech != NULL) { @@ -181,8 +181,8 @@ gss_OID_set *mechSet; * need to lock the g_mechSet in case someone tries to update it while * I'm copying it. */ - minorStatus = k5_mutex_lock(&g_mechSetLock); - if (minorStatus) + *minorStatus = k5_mutex_lock(&g_mechSetLock); + if (*minorStatus) return GSS_S_FAILURE; /* allocate space for the oid structures */