From: Ken Raeburn Date: Fri, 6 Jun 2008 17:27:50 +0000 (+0000) Subject: Check for GSS_C_NO_CREDENTIAL before loop check X-Git-Tag: krb5-1.7-alpha1~662 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a49a83460bcc9f123d3d980672b9244b47356b44;p=krb5.git Check for GSS_C_NO_CREDENTIAL before loop check git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20363 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/gssapi/mechglue/g_rel_cred.c b/src/lib/gssapi/mechglue/g_rel_cred.c index 6f546a6e2..02e915262 100644 --- a/src/lib/gssapi/mechglue/g_rel_cred.c +++ b/src/lib/gssapi/mechglue/g_rel_cred.c @@ -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++) {