svn rev #25316: trunk/src/lib/gssapi/mechglue/
ghudson@MIT.EDU
ghudson at MIT.EDU
Thu Oct 6 12:38:35 EDT 2011
http://src.mit.edu/fisheye/changelog/krb5/?cs=25316
Commit By: ghudson
Log Message:
Initialize localname on error in gss_localname.
Changed Files:
U trunk/src/lib/gssapi/mechglue/gssd_pname_to_uid.c
Modified: trunk/src/lib/gssapi/mechglue/gssd_pname_to_uid.c
===================================================================
--- trunk/src/lib/gssapi/mechglue/gssd_pname_to_uid.c 2011-10-06 16:18:56 UTC (rev 25315)
+++ trunk/src/lib/gssapi/mechglue/gssd_pname_to_uid.c 2011-10-06 16:38:35 UTC (rev 25316)
@@ -124,10 +124,11 @@
gss_union_name_t unionName;
gss_name_t mechName = GSS_C_NO_NAME, mechNameP;
- /*
- * find the appropriate mechanism specific pname_to_uid procedure and
- * call it.
- */
+ if (localname != GSS_C_NO_BUFFER) {
+ localname->length = 0;
+ localname->value = NULL;
+ }
+
if (minor == NULL)
return GSS_S_CALL_INACCESSIBLE_WRITE;
More information about the cvs-krb5
mailing list