aboutsummaryrefslogtreecommitdiff
path: root/src/lib/krb5/os/init_os_ctx.c
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1999-03-12 20:32:45 +0000
committerTheodore Tso <tytso@mit.edu>1999-03-12 20:32:45 +0000
commite7ed9d3ec084e83a10f3a13894d4b29de1cb4209 (patch)
treed76c1059235b8c3bff8af0da15b79bf4f9dbed52 /src/lib/krb5/os/init_os_ctx.c
parent41bffde23a64d149e90aba3601260d2d3a149197 (diff)
downloadkrb5-e7ed9d3ec084e83a10f3a13894d4b29de1cb4209.zip
krb5-e7ed9d3ec084e83a10f3a13894d4b29de1cb4209.tar.gz
krb5-e7ed9d3ec084e83a10f3a13894d4b29de1cb4209.tar.bz2
Sample the ccdefault name at the time when we create the context.
Free the ccdefault name when we free the os context. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11272 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/os/init_os_ctx.c')
-rw-r--r--src/lib/krb5/os/init_os_ctx.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/krb5/os/init_os_ctx.c b/src/lib/krb5/os/init_os_ctx.c
index 99d9e6d..ab325cb 100644
--- a/src/lib/krb5/os/init_os_ctx.c
+++ b/src/lib/krb5/os/init_os_ctx.c
@@ -184,6 +184,9 @@ krb5_os_init_context(ctx)
os_ctx->time_offset = 0;
os_ctx->usec_offset = 0;
os_ctx->os_flags = 0;
+ os_ctx->default_ccname = 0;
+
+ krb5_cc_set_default_name(ctx, NULL);
retval = os_init_paths(ctx, FALSE);
@@ -241,6 +244,9 @@ krb5_os_free_context(ctx)
if (!os_ctx)
return;
+ if (os_ctx->default_ccname)
+ free(os_ctx->default_ccname);
+
os_ctx->magic = 0;
free(os_ctx);
ctx->os_context = 0;