svn rev #23808: branches/krb5-1-8/src/lib/gssapi/spnego/
tlyu@MIT.EDU
tlyu at MIT.EDU
Mon Mar 15 19:50:49 EDT 2010
http://src.mit.edu/fisheye/changelog/krb5/?cs=23808
Commit By: tlyu
Log Message:
ticket: 6674
status: resolved
version_fixed: 1.8.1
pull up r23772 from trunk
------------------------------------------------------------------------
r23772 | ghudson | 2010-03-05 15:35:26 -0500 (Fri, 05 Mar 2010) | 7 lines
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 branches/krb5-1-8/src/lib/gssapi/spnego/spnego_mech.c
Modified: branches/krb5-1-8/src/lib/gssapi/spnego/spnego_mech.c
===================================================================
--- branches/krb5-1-8/src/lib/gssapi/spnego/spnego_mech.c 2010-03-15 23:50:46 UTC (rev 23807)
+++ branches/krb5-1-8/src/lib/gssapi/spnego/spnego_mech.c 2010-03-15 23:50:49 UTC (rev 23808)
@@ -1693,6 +1693,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) {
@@ -2578,6 +2579,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