Free the auth context when freeing the GSSAPI context structure
authorTheodore Tso <tytso@mit.edu>
Wed, 13 Sep 1995 19:33:23 +0000 (19:33 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 13 Sep 1995 19:33:23 +0000 (19:33 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6776 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/krb5/ChangeLog
src/lib/gssapi/krb5/delete_sec_context.c
src/lib/gssapi/krb5/export_sec_context.c

index 35a20d2106c93580382ee7a2fe8a7f14b89a476f..777d37d2f1f31c8b2c9ac0c18bda77f76245c3bc 100644 (file)
@@ -1,3 +1,11 @@
+Tue Sep 12 19:07:52 1995  Theodore Y. Ts'o  <tytso@dcl>
+
+       * export_sec_context.c (krb5_gss_export_sec_context): Free the
+               auth context when freeing the GSSAPI context structure.
+
+       * delete_sec_context.c (krb5_gss_delete_sec_context): Free the
+               auth context when freeing the GSSAPI context structure.
+
 Tue Sep 12 13:05:51 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>
 
        * k5seal.c, k5unseal.c, accept_sec_context.c: Undo MACINTOSH
index 8127ea61e27de4665e1f38e2ecf6129cc6f4d43b..c23bfcca50dbef299efbcc414bb32cd21af8c206 100644 (file)
@@ -80,6 +80,9 @@ krb5_gss_delete_sec_context(context, minor_status, context_handle, output_token)
    krb5_free_principal(context, ctx->there);
    krb5_free_keyblock(context, ctx->subkey);
 
+   if (ctx->auth_context)
+       krb5_auth_con_free(context, ctx->auth_context);
+   
    xfree(ctx);
 
    /* zero the handle itself */
index 4f07bcb5aff965c096a8ea51143740b5f6810514..01dbf9773eb3411c4ed6529b3a53688514d31d86 100644 (file)
@@ -95,6 +95,9 @@ krb5_gss_export_sec_context(context,
                            krb5_free_principal(ctx->context, ctx->there);
                            krb5_free_keyblock(ctx->context, ctx->subkey);
 
+                           if (ctx->auth_context)
+                               krb5_auth_con_free(context, ctx->auth_context);
+
                            /* Zero out context */
                            memset(ctx, 0, sizeof(*ctx));
                            xfree(ctx);