From 93a8480b19227479709f86683f43418318b7aa20 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Wed, 16 Jul 2008 23:01:43 +0000 Subject: [PATCH] Fix indirection on assignment to minor status ticket: 5962 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20530 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/mechglue/g_initialize.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 */ -- 2.26.2