svn rev #23772: trunk/src/lib/gssapi/spnego/

ghudson@MIT.EDU ghudson at MIT.EDU
Fri Mar 5 15:35:26 EST 2010


http://src.mit.edu/fisheye/changelog/krb5/?cs=23772
Commit By: ghudson
Log Message:
ticket: 6674
target_version: 1.8.1
tags: pullup

Release the internal_name field of a SPNEGO context if it has not been
claimed for a caller argument.



Changed Files:
U   trunk/src/lib/gssapi/spnego/spnego_mech.c
Modified: trunk/src/lib/gssapi/spnego/spnego_mech.c
===================================================================
--- trunk/src/lib/gssapi/spnego/spnego_mech.c	2010-03-05 20:33:37 UTC (rev 23771)
+++ trunk/src/lib/gssapi/spnego/spnego_mech.c	2010-03-05 20:35:26 UTC (rev 23772)
@@ -1742,6 +1742,7 @@
 		if (sc->internal_name != GSS_C_NO_NAME &&
 		    src_name != NULL) {
 			*src_name = sc->internal_name;
+			sc->internal_name = GSS_C_NO_NAME;
 		}
 		release_spnego_ctx(&sc);
 	} else if (ret != GSS_S_CONTINUE_NEEDED) {
@@ -2627,6 +2628,8 @@
 		(void) generic_gss_release_oid(&minor_stat,
 				&context->internal_mech);
 
+		(void) gss_release_name(&minor_stat, &context->internal_name);
+
 		if (context->optionStr != NULL) {
 			free(context->optionStr);
 			context->optionStr = NULL;




More information about the cvs-krb5 mailing list