If we have at least one cred element after the mech loop, reset major
before continuing on, or we could mistakenly return a failure status
from the last mech (and free the returned creds). Reported by
aberry@likewise.com.
ticket: 6944
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25097
dc483132-0cff-0310-8789-
dd5450dbe970
/* ensure that we have at least one credential element */
if (creds->count < 1)
goto cleanup;
+ major = GSS_S_COMPLETE;
/*
* fill in output parameters