diff options
author | Sumit Bose <sbose@redhat.com> | 2010-10-29 17:53:12 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-11-04 09:49:06 -0400 |
commit | 0b0a1e478e2ac7f30429c0c1d00b92b8f990d687 (patch) | |
tree | 5259e9a0aae098d31c12eaeed5db474560df69a6 /src | |
parent | b3b327ada3a5db73c008ec8a7eeff2bfc5cc3d3e (diff) | |
download | sssd-0b0a1e478e2ac7f30429c0c1d00b92b8f990d687.tar.gz sssd-0b0a1e478e2ac7f30429c0c1d00b92b8f990d687.tar.bz2 sssd-0b0a1e478e2ac7f30429c0c1d00b92b8f990d687.zip |
Store krb5 auth context for other targets
Diffstat (limited to 'src')
-rw-r--r-- | 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 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; } |