Fix major status handling in gss_acquire_cred
authorGreg Hudson <ghudson@mit.edu>
Thu, 11 Aug 2011 15:13:52 +0000 (15:13 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 11 Aug 2011 15:13:52 +0000 (15:13 +0000)
commit167aed220154427f3a7b5dbb859d93b773c08992
tree27edd71accd8c446ba3853f0df54889f705a230e
parente9093e0805c49cddc86a6fef5154e77aa959f227
Fix major status handling in gss_acquire_cred

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
src/lib/gssapi/mechglue/g_acquire_cred.c