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

ghudson@MIT.EDU ghudson at MIT.EDU
Tue Dec 27 01:39:07 EST 2011


http://src.mit.edu/fisheye/changelog/krb5/?cs=25604
Commit By: ghudson
Log Message:
ticket: 6936

Fix an unlikely memory leak in r25591


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	2011-12-22 21:27:16 UTC (rev 25603)
+++ trunk/src/lib/gssapi/spnego/spnego_mech.c	2011-12-27 06:39:07 UTC (rev 25604)
@@ -589,7 +589,7 @@
 	ret = get_negotiable_mechs(minor_status, spcred, GSS_C_INITIATE,
 				   &sc->mech_set);
 	if (ret != GSS_S_COMPLETE)
-		return ret;
+		goto cleanup;
 
 	/* Set an initial internal mech to make the first context token. */
 	sc->internal_mech = &sc->mech_set->elements[0];



More information about the cvs-krb5 mailing list