svn rev #25097: trunk/src/lib/gssapi/mechglue/
ghudson@MIT.EDU
ghudson at MIT.EDU
Thu Aug 11 11:13:52 EDT 2011
http://src.mit.edu/fisheye/changelog/krb5/?cs=25097
Commit By: ghudson
Log Message:
ticket: 6944
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 at likewise.com.
Changed Files:
U trunk/src/lib/gssapi/mechglue/g_acquire_cred.c
Modified: trunk/src/lib/gssapi/mechglue/g_acquire_cred.c
===================================================================
--- trunk/src/lib/gssapi/mechglue/g_acquire_cred.c 2011-08-11 15:03:28 UTC (rev 25096)
+++ trunk/src/lib/gssapi/mechglue/g_acquire_cred.c 2011-08-11 15:13:52 UTC (rev 25097)
@@ -180,6 +180,7 @@
/* ensure that we have at least one credential element */
if (creds->count < 1)
goto cleanup;
+ major = GSS_S_COMPLETE;
/*
* fill in output parameters
More information about the cvs-krb5
mailing list