From a49a83460bcc9f123d3d980672b9244b47356b44 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 6 Jun 2008 17:27:50 +0000 Subject: [PATCH] Check for GSS_C_NO_CREDENTIAL before loop check git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20363 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/mechglue/g_rel_cred.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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++) { -- 2.26.2