From 83ff7b918f676cc20055361fc8fbe2e95ee3f24e Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Fri, 29 Oct 2010 17:53:12 +0200 Subject: [PATCH] Store krb5 auth context for other targets --- src/providers/krb5/krb5_init.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/providers/krb5/krb5_init.c b/src/providers/krb5/krb5_init.c index 951dfcc..f2b5dd7 100644 --- a/src/providers/krb5/krb5_init.c +++ b/src/providers/krb5/krb5_init.c @@ -82,6 +82,7 @@ int sssm_krb5_auth_init(struct be_ctx *bectx, DEBUG(1, ("talloc failed.\n")); return ENOMEM; } + krb5_options->auth_ctx = ctx; ctx->action = INIT_PW; ctx->opts = krb5_options->opts; @@ -178,7 +179,7 @@ int sssm_krb5_auth_init(struct be_ctx *bectx, return EOK; fail: - talloc_free(ctx); + talloc_zfree(krb5_options->auth_ctx); return ret; } -- 1.7.2.3