(_gss_ntlm_delete_sec_context): free credcache when done

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20552 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-04-24 11:56:17 +00:00
parent 7e6b98aa96
commit c5f0bb0769

View File

@@ -45,6 +45,9 @@ OM_uint32 _gss_ntlm_delete_sec_context
ntlm_ctx ctx = (ntlm_ctx)*context_handle; ntlm_ctx ctx = (ntlm_ctx)*context_handle;
*context_handle = GSS_C_NO_CONTEXT; *context_handle = GSS_C_NO_CONTEXT;
if (ctx->id)
krb5_cc_close(ctx->context, ctx->id);
if (ctx->context) { if (ctx->context) {
krb5_ntlm_free(ctx->context, ctx->ntlm); krb5_ntlm_free(ctx->context, ctx->ntlm);
krb5_free_context(ctx->context); krb5_free_context(ctx->context);