Check for GSS_C_NO_CREDENTIAL before loop check
authorKen Raeburn <raeburn@mit.edu>
Fri, 6 Jun 2008 17:27:50 +0000 (17:27 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 6 Jun 2008 17:27:50 +0000 (17:27 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20363 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/mechglue/g_rel_cred.c

index 6f546a6e241a6e1903c1437d041887287ff5da21..02e9152626639219cef6641609e3fa34c25c06ec 100644 (file)
@@ -60,13 +60,13 @@ gss_cred_id_t *             cred_handle;
      */
     
     union_cred = (gss_union_cred_t) *cred_handle;
+    if (union_cred == (gss_union_cred_t)GSS_C_NO_CREDENTIAL)
+       return (GSS_S_COMPLETE);
+
     if (GSSINT_CHK_LOOP(union_cred))
        return (GSS_S_NO_CRED | GSS_S_CALL_INACCESSIBLE_READ);
     *cred_handle = NULL;
 
-    if (union_cred == (gss_union_cred_t)GSS_C_NO_CREDENTIAL)
-       return (GSS_S_COMPLETE);
-
     status = GSS_S_COMPLETE;
     
     for(j=0; j < union_cred->count; j++) {