From 0b0a1e478e2ac7f30429c0c1d00b92b8f990d687 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Fri, 29 Oct 2010 17:53:12 +0200 Subject: Store krb5 auth context for other targets --- src/providers/krb5/krb5_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/providers/krb5/krb5_init.c b/src/providers/krb5/krb5_init.c index 7facdce5..0c8d2250 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; } -- cgit