svn rev #24917: trunk/src/lib/gssapi/krb5/

ghudson@MIT.EDU ghudson at MIT.EDU
Mon May 9 13:28:07 EDT 2011


http://src.mit.edu/fisheye/changelog/krb5/?cs=24917
Commit By: ghudson
Log Message:
ticket: 6908
subject: Delete sec context properly in gss_krb5_export_lucid_sec_context
target_version: 1.9.2
tags: pullup

Since r21690, gss_krb5_export_lucid_sec_context() has been passing a
union context to krb5_gss_delete_sec_context(), causing a crash as the
krb5 routine attempts to interpret a union context structure as a krb5
GSS context.  Call the mechglue gss_delete_sec_context instead.



Changed Files:
U   trunk/src/lib/gssapi/krb5/krb5_gss_glue.c
Modified: trunk/src/lib/gssapi/krb5/krb5_gss_glue.c
===================================================================
--- trunk/src/lib/gssapi/krb5/krb5_gss_glue.c	2011-05-05 19:01:41 UTC (rev 24916)
+++ trunk/src/lib/gssapi/krb5/krb5_gss_glue.c	2011-05-09 17:28:07 UTC (rev 24917)
@@ -196,7 +196,7 @@
     /* Clean up the context state (it is an error for
      * someone to attempt to use this context again)
      */
-    (void)krb5_gss_delete_sec_context(minor_status, context_handle, NULL);
+    (void)gss_delete_sec_context(minor_status, context_handle, NULL);
     *context_handle = GSS_C_NO_CONTEXT;
 
     generic_gss_release_buffer_set(&minor, &data_set);




More information about the cvs-krb5 mailing list