From 4dc4718becc20224b9da5657b8216af7d4da8ac5 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 5 Apr 2013 18:04:35 -0400 Subject: Fix double free when exporting lucid context When using GSSAPI's gss_krb5_export_lucid_context the context passed into the function is actually deleted during the export (to avoid reuse as the context contains state that depends on its usage). Change the code to pass in a pointer to the context so that it can be properly NULLed if we are using the GSSAPI context and following calls to gss_delete_sec_context will not cause double free errors and segfaults. Signed-off-by: Simo Sorce --- utils/gssd/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/gssd/context.c') diff --git a/utils/gssd/context.c b/utils/gssd/context.c index fee7da2..7757a77 100644 --- a/utils/gssd/context.c +++ b/utils/gssd/context.c @@ -44,7 +44,7 @@ #include "context.h" int -serialize_context_for_kernel(gss_ctx_id_t ctx, +serialize_context_for_kernel(gss_ctx_id_t *ctx, gss_buffer_desc *buf, gss_OID mech, int32_t *endtime) -- cgit