svn rev #21611: branches/mskrb-integ/src/lib/gssapi/mechglue/

lhoward@MIT.EDU lhoward at MIT.EDU
Sat Dec 27 19:02:12 EST 2008


http://src.mit.edu/fisheye/changelog/krb5/?cs=21611
Commit By: lhoward
Log Message:
It appears OK, at least for the Kerberos mechanism, for
gss_inquire_cred() to return GSS_C_NO_NAME in *name, rather than causing
the entire function to return an error. We had some code that depended
on this.



Changed Files:
U   branches/mskrb-integ/src/lib/gssapi/mechglue/g_inq_cred.c
Modified: branches/mskrb-integ/src/lib/gssapi/mechglue/g_inq_cred.c
===================================================================
--- branches/mskrb-integ/src/lib/gssapi/mechglue/g_inq_cred.c	2008-12-27 23:35:06 UTC (rev 21610)
+++ branches/mskrb-integ/src/lib/gssapi/mechglue/g_inq_cred.c	2008-12-28 00:02:10 UTC (rev 21611)
@@ -143,7 +143,9 @@
      */
     
     if(name != NULL) {
-	if ((gss_import_name(&temp_minor_status,
+	if (union_cred->auxinfo.name.length == 0) {
+	    *name = GSS_C_NO_NAME;
+	} else if ((gss_import_name(&temp_minor_status,
 			     &union_cred->auxinfo.name,
 			     union_cred->auxinfo.name_type,
 			     name) != GSS_S_COMPLETE) ||




More information about the cvs-krb5 mailing list