summaryrefslogtreecommitdiffstats
path: root/src/providers/krb5/krb5_init.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-10-29 17:53:12 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-11-04 09:49:06 -0400
commit0b0a1e478e2ac7f30429c0c1d00b92b8f990d687 (patch)
tree5259e9a0aae098d31c12eaeed5db474560df69a6 /src/providers/krb5/krb5_init.c
parentb3b327ada3a5db73c008ec8a7eeff2bfc5cc3d3e (diff)
downloadsssd-0b0a1e478e2ac7f30429c0c1d00b92b8f990d687.tar.gz
sssd-0b0a1e478e2ac7f30429c0c1d00b92b8f990d687.tar.xz
sssd-0b0a1e478e2ac7f30429c0c1d00b92b8f990d687.zip
Store krb5 auth context for other targets
Diffstat (limited to 'src/providers/krb5/krb5_init.c')
-rw-r--r--src/providers/krb5/krb5_init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/providers/krb5/krb5_init.c b/src/providers/krb5/krb5_init.c
index 7facdce5e..0c8d2250d 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;
}