Fix indirection on assignment to minor status
authorTom Yu <tlyu@mit.edu>
Wed, 16 Jul 2008 23:01:43 +0000 (23:01 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 16 Jul 2008 23:01:43 +0000 (23:01 +0000)
ticket: 5962

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20530 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/mechglue/g_initialize.c

index 5fbe26fcf4b0a5a75b339fa9d468401eb59bf3e0..518eeede4fa6da9b940954388db328d7a0685928 100644 (file)
@@ -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 */