From 0703a1a50f38fd5759b67200f45189250fdcd8f2 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 27 Jun 2008 03:14:39 +0000 Subject: [PATCH] call kg_delete_lucidctx_id before freeing, not after git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20483 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/krb5/lucid_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/gssapi/krb5/lucid_context.c b/src/lib/gssapi/krb5/lucid_context.c index 1e4f0bf9c..086bea427 100644 --- a/src/lib/gssapi/krb5/lucid_context.c +++ b/src/lib/gssapi/krb5/lucid_context.c @@ -160,6 +160,7 @@ gss_krb5_free_lucid_sec_context( version = ((gss_krb5_lucid_context_version_t *)kctx)->version; switch (version) { case 1: + (void)kg_delete_lucidctx_id(kctx); free_external_lucid_ctx_v1((gss_krb5_lucid_context_v1_t*) kctx); break; default: @@ -171,7 +172,6 @@ gss_krb5_free_lucid_sec_context( goto error_out; /* Success! */ - (void)kg_delete_lucidctx_id(kctx); *minor_status = 0; retval = GSS_S_COMPLETE; -- 2.26.2