summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 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;
}